{"action":"created","issue":{"url":"https://api.github.com/repos/mikaelpatel/Arduino-Shell/issues/25","repository_url":"https://api.github.com/repos/mikaelpatel/Arduino-Shell","labels_url":"https://api.github.com/repos/mikaelpatel/Arduino-Shell/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/mikaelpatel/Arduino-Shell/issues/25/comments","events_url":"https://api.github.com/repos/mikaelpatel/Arduino-Shell/issues/25/events","html_url":"https://github.com/mikaelpatel/Arduino-Shell/issues/25","id":138036892,"number":25,"title":"timeout","user":{"login":"dpharris","id":538698,"avatar_url":"https://avatars.githubusercontent.com/u/538698?v=3","gravatar_id":"","url":"https://api.github.com/users/dpharris","html_url":"https://github.com/dpharris","followers_url":"https://api.github.com/users/dpharris/followers","following_url":"https://api.github.com/users/dpharris/following{/other_user}","gists_url":"https://api.github.com/users/dpharris/gists{/gist_id}","starred_url":"https://api.github.com/users/dpharris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpharris/subscriptions","organizations_url":"https://api.github.com/users/dpharris/orgs","repos_url":"https://api.github.com/users/dpharris/repos","events_url":"https://api.github.com/users/dpharris/events{/privacy}","received_events_url":"https://api.github.com/users/dpharris/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-03T00:38:02Z","updated_at":"2016-03-03T20:42:55Z","closed_at":null,"body":"I see a new t(timeout) token.  I need this in my app!  \r\n  This works:  13O 0{1000,0t{{13L0}{13H1}e}i T}w\r\n  Or: 13O {1000,0t{13X}iT}w\r\nI have been using: \r\n  if(MIllis()>next) { ....  next+=period; }  // this is slightly faster, and gives consistent period\r\n\r\n[[ roll-over is a problem, and more of a problem with Shell, since M is only a word.  \r\n   The math should be something like:\r\n       if( (uint16_t)(M-next)>0x3FFF ) ...   when using uint16_t  (I think)\r\n  Or\r\n     if(  (int16_t)(M-next)>0 ) ... if using signed arithmetic (I think) \r\n]]\r\n"},"comment":{"url":"https://api.github.com/repos/mikaelpatel/Arduino-Shell/issues/comments/191953800","html_url":"https://github.com/mikaelpatel/Arduino-Shell/issues/25#issuecomment-191953800","issue_url":"https://api.github.com/repos/mikaelpatel/Arduino-Shell/issues/25","id":191953800,"user":{"login":"mikaelpatel","id":2774083,"avatar_url":"https://avatars.githubusercontent.com/u/2774083?v=3","gravatar_id":"","url":"https://api.github.com/users/mikaelpatel","html_url":"https://github.com/mikaelpatel","followers_url":"https://api.github.com/users/mikaelpatel/followers","following_url":"https://api.github.com/users/mikaelpatel/following{/other_user}","gists_url":"https://api.github.com/users/mikaelpatel/gists{/gist_id}","starred_url":"https://api.github.com/users/mikaelpatel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikaelpatel/subscriptions","organizations_url":"https://api.github.com/users/mikaelpatel/orgs","repos_url":"https://api.github.com/users/mikaelpatel/repos","events_url":"https://api.github.com/users/mikaelpatel/events{/privacy}","received_events_url":"https://api.github.com/users/mikaelpatel/received_events","type":"User","site_admin":false},"created_at":"2016-03-03T20:42:55Z","updated_at":"2016-03-03T20:42:55Z","body":"I think you are on to something but I could not get it to work with all the mapping from uint32_t to unsigned, etc. Might get back to this later on. The current version is not \"pretty\" but it works. "}}