{"action":"created","issue":{"url":"https://api.github.com/repos/matrix-io/matrix-creator-init/issues/4","repository_url":"https://api.github.com/repos/matrix-io/matrix-creator-init","labels_url":"https://api.github.com/repos/matrix-io/matrix-creator-init/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/matrix-io/matrix-creator-init/issues/4/comments","events_url":"https://api.github.com/repos/matrix-io/matrix-creator-init/issues/4/events","html_url":"https://github.com/matrix-io/matrix-creator-init/issues/4","id":179800261,"number":4,"title":"Manage failures during initialization","user":{"login":"arhuaco","id":858778,"avatar_url":"https://avatars.githubusercontent.com/u/858778?v=3","gravatar_id":"","url":"https://api.github.com/users/arhuaco","html_url":"https://github.com/arhuaco","followers_url":"https://api.github.com/users/arhuaco/followers","following_url":"https://api.github.com/users/arhuaco/following{/other_user}","gists_url":"https://api.github.com/users/arhuaco/gists{/gist_id}","starred_url":"https://api.github.com/users/arhuaco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arhuaco/subscriptions","organizations_url":"https://api.github.com/users/arhuaco/orgs","repos_url":"https://api.github.com/users/arhuaco/repos","events_url":"https://api.github.com/users/arhuaco/events{/privacy}","received_events_url":"https://api.github.com/users/arhuaco/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/matrix-io/matrix-creator-init/labels/duplicate","name":"duplicate","color":"cccccc"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-28T15:06:04Z","updated_at":"2016-10-14T18:21:00Z","closed_at":"2016-10-14T18:21:00Z","body":"In order to avoid MCU write cycles we are only programming it once.\r\nFor that,  we keep this file that serves as an \"already programmed\" flag.\r\n\r\n    /usr/share/admobilize/matrix-creator/sam3-program.bash.done\r\n\r\nIf this file exists the MCU is not programmed again.\r\n\r\nThis is failing once in a while and it's causing the demos to fail, getting zero values from drivers. For instance, for humidity we get:\r\n\r\n    { humidity: 0, temperature: 0 }\r\n\r\nThe workaround is:\r\n\r\n    sudo rm /usr/share/admobilize/matrix-creator/sam3-program.bash.done\r\n    sudo /usr/share/admobilize/matrix-creator/sam3-program.bash\r\n\r\nBut we have to improve this."},"comment":{"url":"https://api.github.com/repos/matrix-io/matrix-creator-init/issues/comments/253881779","html_url":"https://github.com/matrix-io/matrix-creator-init/issues/4#issuecomment-253881779","issue_url":"https://api.github.com/repos/matrix-io/matrix-creator-init/issues/4","id":253881779,"user":{"login":"arhuaco","id":858778,"avatar_url":"https://avatars.githubusercontent.com/u/858778?v=3","gravatar_id":"","url":"https://api.github.com/users/arhuaco","html_url":"https://github.com/arhuaco","followers_url":"https://api.github.com/users/arhuaco/followers","following_url":"https://api.github.com/users/arhuaco/following{/other_user}","gists_url":"https://api.github.com/users/arhuaco/gists{/gist_id}","starred_url":"https://api.github.com/users/arhuaco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arhuaco/subscriptions","organizations_url":"https://api.github.com/users/arhuaco/orgs","repos_url":"https://api.github.com/users/arhuaco/repos","events_url":"https://api.github.com/users/arhuaco/events{/privacy}","received_events_url":"https://api.github.com/users/arhuaco/received_events","type":"User","site_admin":false},"created_at":"2016-10-14T18:21:00Z","updated_at":"2016-10-14T18:21:00Z","body":"Duplicate of https://github.com/matrix-io/matrix-creator-init/issues/10 . Closing."}}
{"actor":{"display_login":"arhuaco"}}