{"action":"created","issue":{"url":"https://api.github.com/repos/Z-Wave-Me/Z-Uno-Core/issues/47","repository_url":"https://api.github.com/repos/Z-Wave-Me/Z-Uno-Core","labels_url":"https://api.github.com/repos/Z-Wave-Me/Z-Uno-Core/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/Z-Wave-Me/Z-Uno-Core/issues/47/comments","events_url":"https://api.github.com/repos/Z-Wave-Me/Z-Uno-Core/issues/47/events","html_url":"https://github.com/Z-Wave-Me/Z-Uno-Core/issues/47","id":106530559,"number":47,"title":"When device is waking up - it seems not have enough time for all tasks","user":{"login":"PoltoS","id":3664383,"avatar_url":"https://avatars.githubusercontent.com/u/3664383?v=3","gravatar_id":"","url":"https://api.github.com/users/PoltoS","html_url":"https://github.com/PoltoS","followers_url":"https://api.github.com/users/PoltoS/followers","following_url":"https://api.github.com/users/PoltoS/following{/other_user}","gists_url":"https://api.github.com/users/PoltoS/gists{/gist_id}","starred_url":"https://api.github.com/users/PoltoS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PoltoS/subscriptions","organizations_url":"https://api.github.com/users/PoltoS/orgs","repos_url":"https://api.github.com/users/PoltoS/repos","events_url":"https://api.github.com/users/PoltoS/events{/privacy}","received_events_url":"https://api.github.com/users/PoltoS/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Z-Wave-Me/Z-Uno-Core/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/Z-Wave-Me/Z-Uno-Core/labels/software","name":"software","color":"009800"}],"state":"closed","locked":false,"assignee":{"login":"NilsBohr","id":5468659,"avatar_url":"https://avatars.githubusercontent.com/u/5468659?v=3","gravatar_id":"","url":"https://api.github.com/users/NilsBohr","html_url":"https://github.com/NilsBohr","followers_url":"https://api.github.com/users/NilsBohr/followers","following_url":"https://api.github.com/users/NilsBohr/following{/other_user}","gists_url":"https://api.github.com/users/NilsBohr/gists{/gist_id}","starred_url":"https://api.github.com/users/NilsBohr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NilsBohr/subscriptions","organizations_url":"https://api.github.com/users/NilsBohr/orgs","repos_url":"https://api.github.com/users/NilsBohr/repos","events_url":"https://api.github.com/users/NilsBohr/events{/privacy}","received_events_url":"https://api.github.com/users/NilsBohr/received_events","type":"User","site_admin":false},"assignees":[{"login":"NilsBohr","id":5468659,"avatar_url":"https://avatars.githubusercontent.com/u/5468659?v=3","gravatar_id":"","url":"https://api.github.com/users/NilsBohr","html_url":"https://github.com/NilsBohr","followers_url":"https://api.github.com/users/NilsBohr/followers","following_url":"https://api.github.com/users/NilsBohr/following{/other_user}","gists_url":"https://api.github.com/users/NilsBohr/gists{/gist_id}","starred_url":"https://api.github.com/users/NilsBohr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NilsBohr/subscriptions","organizations_url":"https://api.github.com/users/NilsBohr/orgs","repos_url":"https://api.github.com/users/NilsBohr/repos","events_url":"https://api.github.com/users/NilsBohr/events{/privacy}","received_events_url":"https://api.github.com/users/NilsBohr/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2015-09-15T10:50:50Z","updated_at":"2016-07-23T13:56:35Z","closed_at":"2016-07-23T13:56:35Z","body":"It is going sleep before executing all tasks\r\n\r\nvoid loop() {\r\n  func_ml3();\r\n  func_bin();\r\n  func_ml();\r\n  func_ml2();\r\n  // FOR FLIRS and sleeping - enable this:\r\n  zunoSendDeviceToSleep();\r\n  \r\n}\r\n\r\nfunc_ml2 will not be executed.\r\n\r\n\r\nif I will change it to\r\nvoid loop() {\r\n  func_ml2();\r\n  func_bin();\r\n  func_ml();\r\n  func_ml3();\r\n  // FOR FLIRS and sleeping - enable this:\r\n  zunoSendDeviceToSleep();\r\n  \r\n}\r\n\r\nfunc_ml3 will not be executed\r\n\r\nit is easy function from examples:\r\nvoid func_ml2(){\r\n  byte currentValue = (byte) (analogRead(2) / 8);\r\n  if ((currentValue - lastValue2 > 4) || (lastValue2 - currentValue > 4)) {\r\n    lastValue2 = currentValue;\r\n    zunoSendReport(ZUNO_CHANNEL_NUMBER_2);  \r\n  }\r\n}\r\n"},"comment":{"url":"https://api.github.com/repos/Z-Wave-Me/Z-Uno-Core/issues/comments/234719520","html_url":"https://github.com/Z-Wave-Me/Z-Uno-Core/issues/47#issuecomment-234719520","issue_url":"https://api.github.com/repos/Z-Wave-Me/Z-Uno-Core/issues/47","id":234719520,"user":{"login":"PoltoS","id":3664383,"avatar_url":"https://avatars.githubusercontent.com/u/3664383?v=3","gravatar_id":"","url":"https://api.github.com/users/PoltoS","html_url":"https://github.com/PoltoS","followers_url":"https://api.github.com/users/PoltoS/followers","following_url":"https://api.github.com/users/PoltoS/following{/other_user}","gists_url":"https://api.github.com/users/PoltoS/gists{/gist_id}","starred_url":"https://api.github.com/users/PoltoS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PoltoS/subscriptions","organizations_url":"https://api.github.com/users/PoltoS/orgs","repos_url":"https://api.github.com/users/PoltoS/repos","events_url":"https://api.github.com/users/PoltoS/events{/privacy}","received_events_url":"https://api.github.com/users/PoltoS/received_events","type":"User","site_admin":false},"created_at":"2016-07-23T13:56:35Z","updated_at":"2016-07-23T13:56:35Z","body":"is it still relevant?"}}
{"actor":{"display_login":"PoltoS"}}