{"action":"created","comment":{"url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/pulls/comments/200296813","pull_request_review_id":134579956,"id":200296813,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMDI5NjgxMw==","diff_hunk":"@@ -377,11 +378,71 @@ void CoolBoard::readBoardData(JsonObject &reported) {\n   }\n }\n \n-void CoolBoard::sleep(unsigned long interval) {\n-  if (interval > 0) {\n-    INFO_VAR(\"Going to sleep for seconds:\", interval);\n-    ESP.deepSleep((uint64(interval) * 1000000ULL), WAKE_RF_DEFAULT);\n+void CoolBoard::shiftLoginterval(uint32_t value) {\n+  uint8_t val[4];\n+  val[0] = value - MAX_SLEEP_TIME;\n+  val[1] = ((value - MAX_SLEEP_TIME) >> 8);\n+  val[2] = ((value - MAX_SLEEP_TIME) >> 16);\n+  val[3] = ((value - MAX_SLEEP_TIME) >> 24);\n+  EEPROM.write(0x00, val[0]);\n+  EEPROM.write(0x01, val[1]);\n+  EEPROM.write(0x02, val[2]);\n+  EEPROM.write(0x03, val[3]);\n+  EEPROM.end();\n+  SPIFFS.end();\n+}\n+\n+void CoolBoard::sleep() {\n+  EEPROM.begin(5);\n+  uint32_t value = 0;\n+  delay(5000);\n+  if (!SPIFFS.exists(\"/configEEPROM.flag\") ||\n+      digitalRead(BOOTSTRAP_PIN) == LOW) {\n+    for (int i = 0; i < 5; i++) {","path":"src/core/CoolBoard.cpp","position":64,"original_position":64,"commit_id":"ea7275cb14172ba919a53bcbc3799431df5a7bd3","original_commit_id":"ea7275cb14172ba919a53bcbc3799431df5a7bd3","user":{"login":"3rwww1","id":933579,"node_id":"MDQ6VXNlcjkzMzU3OQ==","avatar_url":"https://avatars1.githubusercontent.com/u/933579?v=4","gravatar_id":"","url":"https://api.github.com/users/3rwww1","html_url":"https://github.com/3rwww1","followers_url":"https://api.github.com/users/3rwww1/followers","following_url":"https://api.github.com/users/3rwww1/following{/other_user}","gists_url":"https://api.github.com/users/3rwww1/gists{/gist_id}","starred_url":"https://api.github.com/users/3rwww1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/3rwww1/subscriptions","organizations_url":"https://api.github.com/users/3rwww1/orgs","repos_url":"https://api.github.com/users/3rwww1/repos","events_url":"https://api.github.com/users/3rwww1/events{/privacy}","received_events_url":"https://api.github.com/users/3rwww1/received_events","type":"User","site_admin":false},"body":"Don't you mean 4 ?","created_at":"2018-07-05T09:56:29Z","updated_at":"2018-07-05T10:00:06Z","html_url":"https://github.com/LaCoolCo/LaCOOLBoard/pull/175#discussion_r200296813","pull_request_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/pulls/175","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/pulls/comments/200296813"},"html":{"href":"https://github.com/LaCoolCo/LaCOOLBoard/pull/175#discussion_r200296813"},"pull_request":{"href":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/pulls/175"}},"in_reply_to_id":200296744},"pull_request":{"url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/pulls/175","id":198895757,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk4ODk1NzU3","html_url":"https://github.com/LaCoolCo/LaCOOLBoard/pull/175","diff_url":"https://github.com/LaCoolCo/LaCOOLBoard/pull/175.diff","patch_url":"https://github.com/LaCoolCo/LaCOOLBoard/pull/175.patch","issue_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/issues/175","number":175,"state":"open","locked":false,"title":"Changes in sleep fonction for a higher loginterval","user":{"login":"Axe-R","id":40025400,"node_id":"MDQ6VXNlcjQwMDI1NDAw","avatar_url":"https://avatars2.githubusercontent.com/u/40025400?v=4","gravatar_id":"","url":"https://api.github.com/users/Axe-R","html_url":"https://github.com/Axe-R","followers_url":"https://api.github.com/users/Axe-R/followers","following_url":"https://api.github.com/users/Axe-R/following{/other_user}","gists_url":"https://api.github.com/users/Axe-R/gists{/gist_id}","starred_url":"https://api.github.com/users/Axe-R/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Axe-R/subscriptions","organizations_url":"https://api.github.com/users/Axe-R/orgs","repos_url":"https://api.github.com/users/Axe-R/repos","events_url":"https://api.github.com/users/Axe-R/events{/privacy}","received_events_url":"https://api.github.com/users/Axe-R/received_events","type":"User","site_admin":false},"body":"We wrote a `delay` of 5 seconds in order to know if the COOLBoard's switch is in LOAD position. It will allow the user to reset the board and to clean the EEPROM from the latest `Loginterval` known. Then he will have to put it back in RUN's position.","created_at":"2018-07-03T09:04:29Z","updated_at":"2018-07-05T10:00:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ccf536d1e0432fafb373b6a1b23e12c9cf8e04ca","assignee":null,"assignees":[],"requested_reviewers":[{"login":"trap98","id":20792114,"node_id":"MDQ6VXNlcjIwNzkyMTE0","avatar_url":"https://avatars1.githubusercontent.com/u/20792114?v=4","gravatar_id":"","url":"https://api.github.com/users/trap98","html_url":"https://github.com/trap98","followers_url":"https://api.github.com/users/trap98/followers","following_url":"https://api.github.com/users/trap98/following{/other_user}","gists_url":"https://api.github.com/users/trap98/gists{/gist_id}","starred_url":"https://api.github.com/users/trap98/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trap98/subscriptions","organizations_url":"https://api.github.com/users/trap98/orgs","repos_url":"https://api.github.com/users/trap98/repos","events_url":"https://api.github.com/users/trap98/events{/privacy}","received_events_url":"https://api.github.com/users/trap98/received_events","type":"User","site_admin":false},{"login":"simon-lacool","id":22662065,"node_id":"MDQ6VXNlcjIyNjYyMDY1","avatar_url":"https://avatars3.githubusercontent.com/u/22662065?v=4","gravatar_id":"","url":"https://api.github.com/users/simon-lacool","html_url":"https://github.com/simon-lacool","followers_url":"https://api.github.com/users/simon-lacool/followers","following_url":"https://api.github.com/users/simon-lacool/following{/other_user}","gists_url":"https://api.github.com/users/simon-lacool/gists{/gist_id}","starred_url":"https://api.github.com/users/simon-lacool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simon-lacool/subscriptions","organizations_url":"https://api.github.com/users/simon-lacool/orgs","repos_url":"https://api.github.com/users/simon-lacool/repos","events_url":"https://api.github.com/users/simon-lacool/events{/privacy}","received_events_url":"https://api.github.com/users/simon-lacool/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/pulls/175/commits","review_comments_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/pulls/175/comments","review_comment_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/pulls/comments{/number}","comments_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/issues/175/comments","statuses_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/statuses/ea7275cb14172ba919a53bcbc3799431df5a7bd3","head":{"label":"LaCoolCo:fix/log-interval","ref":"fix/log-interval","sha":"ea7275cb14172ba919a53bcbc3799431df5a7bd3","user":{"login":"LaCoolCo","id":11958646,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExOTU4NjQ2","avatar_url":"https://avatars3.githubusercontent.com/u/11958646?v=4","gravatar_id":"","url":"https://api.github.com/users/LaCoolCo","html_url":"https://github.com/LaCoolCo","followers_url":"https://api.github.com/users/LaCoolCo/followers","following_url":"https://api.github.com/users/LaCoolCo/following{/other_user}","gists_url":"https://api.github.com/users/LaCoolCo/gists{/gist_id}","starred_url":"https://api.github.com/users/LaCoolCo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LaCoolCo/subscriptions","organizations_url":"https://api.github.com/users/LaCoolCo/orgs","repos_url":"https://api.github.com/users/LaCoolCo/repos","events_url":"https://api.github.com/users/LaCoolCo/events{/privacy}","received_events_url":"https://api.github.com/users/LaCoolCo/received_events","type":"Organization","site_admin":false},"repo":{"id":120347300,"node_id":"MDEwOlJlcG9zaXRvcnkxMjAzNDczMDA=","name":"LaCOOLBoard","full_name":"LaCoolCo/LaCOOLBoard","owner":{"login":"LaCoolCo","id":11958646,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExOTU4NjQ2","avatar_url":"https://avatars3.githubusercontent.com/u/11958646?v=4","gravatar_id":"","url":"https://api.github.com/users/LaCoolCo","html_url":"https://github.com/LaCoolCo","followers_url":"https://api.github.com/users/LaCoolCo/followers","following_url":"https://api.github.com/users/LaCoolCo/following{/other_user}","gists_url":"https://api.github.com/users/LaCoolCo/gists{/gist_id}","starred_url":"https://api.github.com/users/LaCoolCo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LaCoolCo/subscriptions","organizations_url":"https://api.github.com/users/LaCoolCo/orgs","repos_url":"https://api.github.com/users/LaCoolCo/repos","events_url":"https://api.github.com/users/LaCoolCo/events{/privacy}","received_events_url":"https://api.github.com/users/LaCoolCo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/LaCoolCo/LaCOOLBoard","description":"Arduino library & sample sketches for La COOL Board, the open-source, open-hardware environmental monitoring and control device","fork":false,"url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard","forks_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/forks","keys_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/teams","hooks_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/hooks","issue_events_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/issues/events{/number}","events_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/events","assignees_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/assignees{/user}","branches_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/branches{/branch}","tags_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/tags","blobs_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/git/refs{/sha}","trees_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/statuses/{sha}","languages_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/languages","stargazers_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/stargazers","contributors_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/contributors","subscribers_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/subscribers","subscription_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/subscription","commits_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/commits{/sha}","git_commits_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/git/commits{/sha}","comments_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/comments{/number}","issue_comment_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/issues/comments{/number}","contents_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/contents/{+path}","compare_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/merges","archive_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/downloads","issues_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/issues{/number}","pulls_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/pulls{/number}","milestones_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/milestones{/number}","notifications_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/labels{/name}","releases_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/releases{/id}","deployments_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/deployments","created_at":"2018-02-05T18:54:48Z","updated_at":"2018-07-04T09:43:53Z","pushed_at":"2018-07-04T08:04:22Z","git_url":"git://github.com/LaCoolCo/LaCOOLBoard.git","ssh_url":"git@github.com:LaCoolCo/LaCOOLBoard.git","clone_url":"https://github.com/LaCoolCo/LaCOOLBoard.git","svn_url":"https://github.com/LaCoolCo/LaCOOLBoard","homepage":"http://www.lacool.co","size":34727,"stargazers_count":2,"watchers_count":2,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":20,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":1,"open_issues":20,"watchers":2,"default_branch":"master"}},"base":{"label":"LaCoolCo:master","ref":"master","sha":"cccff8d06c3350b7b43c0d761284c1da76edb007","user":{"login":"LaCoolCo","id":11958646,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExOTU4NjQ2","avatar_url":"https://avatars3.githubusercontent.com/u/11958646?v=4","gravatar_id":"","url":"https://api.github.com/users/LaCoolCo","html_url":"https://github.com/LaCoolCo","followers_url":"https://api.github.com/users/LaCoolCo/followers","following_url":"https://api.github.com/users/LaCoolCo/following{/other_user}","gists_url":"https://api.github.com/users/LaCoolCo/gists{/gist_id}","starred_url":"https://api.github.com/users/LaCoolCo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LaCoolCo/subscriptions","organizations_url":"https://api.github.com/users/LaCoolCo/orgs","repos_url":"https://api.github.com/users/LaCoolCo/repos","events_url":"https://api.github.com/users/LaCoolCo/events{/privacy}","received_events_url":"https://api.github.com/users/LaCoolCo/received_events","type":"Organization","site_admin":false},"repo":{"id":120347300,"node_id":"MDEwOlJlcG9zaXRvcnkxMjAzNDczMDA=","name":"LaCOOLBoard","full_name":"LaCoolCo/LaCOOLBoard","owner":{"login":"LaCoolCo","id":11958646,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExOTU4NjQ2","avatar_url":"https://avatars3.githubusercontent.com/u/11958646?v=4","gravatar_id":"","url":"https://api.github.com/users/LaCoolCo","html_url":"https://github.com/LaCoolCo","followers_url":"https://api.github.com/users/LaCoolCo/followers","following_url":"https://api.github.com/users/LaCoolCo/following{/other_user}","gists_url":"https://api.github.com/users/LaCoolCo/gists{/gist_id}","starred_url":"https://api.github.com/users/LaCoolCo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LaCoolCo/subscriptions","organizations_url":"https://api.github.com/users/LaCoolCo/orgs","repos_url":"https://api.github.com/users/LaCoolCo/repos","events_url":"https://api.github.com/users/LaCoolCo/events{/privacy}","received_events_url":"https://api.github.com/users/LaCoolCo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/LaCoolCo/LaCOOLBoard","description":"Arduino library & sample sketches for La COOL Board, the open-source, open-hardware environmental monitoring and control device","fork":false,"url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard","forks_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/forks","keys_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/teams","hooks_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/hooks","issue_events_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/issues/events{/number}","events_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/events","assignees_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/assignees{/user}","branches_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/branches{/branch}","tags_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/tags","blobs_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/git/refs{/sha}","trees_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/statuses/{sha}","languages_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/languages","stargazers_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/stargazers","contributors_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/contributors","subscribers_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/subscribers","subscription_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/subscription","commits_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/commits{/sha}","git_commits_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/git/commits{/sha}","comments_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/comments{/number}","issue_comment_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/issues/comments{/number}","contents_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/contents/{+path}","compare_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/merges","archive_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/downloads","issues_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/issues{/number}","pulls_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/pulls{/number}","milestones_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/milestones{/number}","notifications_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/labels{/name}","releases_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/releases{/id}","deployments_url":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/deployments","created_at":"2018-02-05T18:54:48Z","updated_at":"2018-07-04T09:43:53Z","pushed_at":"2018-07-04T08:04:22Z","git_url":"git://github.com/LaCoolCo/LaCOOLBoard.git","ssh_url":"git@github.com:LaCoolCo/LaCOOLBoard.git","clone_url":"https://github.com/LaCoolCo/LaCOOLBoard.git","svn_url":"https://github.com/LaCoolCo/LaCOOLBoard","homepage":"http://www.lacool.co","size":34727,"stargazers_count":2,"watchers_count":2,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":20,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":1,"open_issues":20,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/pulls/175"},"html":{"href":"https://github.com/LaCoolCo/LaCOOLBoard/pull/175"},"issue":{"href":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/issues/175"},"comments":{"href":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/issues/175/comments"},"review_comments":{"href":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/pulls/175/comments"},"review_comment":{"href":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/pulls/175/commits"},"statuses":{"href":"https://api.github.com/repos/LaCoolCo/LaCOOLBoard/statuses/ea7275cb14172ba919a53bcbc3799431df5a7bd3"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"3rwww1"}}