{"action":"created","issue":{"url":"https://api.github.com/repos/madleech/ArduinoCMRI/issues/6","repository_url":"https://api.github.com/repos/madleech/ArduinoCMRI","labels_url":"https://api.github.com/repos/madleech/ArduinoCMRI/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/madleech/ArduinoCMRI/issues/6/comments","events_url":"https://api.github.com/repos/madleech/ArduinoCMRI/issues/6/events","html_url":"https://github.com/madleech/ArduinoCMRI/issues/6","id":164638444,"number":6,"title":"Errors in the JMRI console?","user":{"login":"k4kfh","id":10699911,"avatar_url":"https://avatars.githubusercontent.com/u/10699911?v=3","gravatar_id":"","url":"https://api.github.com/users/k4kfh","html_url":"https://github.com/k4kfh","followers_url":"https://api.github.com/users/k4kfh/followers","following_url":"https://api.github.com/users/k4kfh/following{/other_user}","gists_url":"https://api.github.com/users/k4kfh/gists{/gist_id}","starred_url":"https://api.github.com/users/k4kfh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k4kfh/subscriptions","organizations_url":"https://api.github.com/users/k4kfh/orgs","repos_url":"https://api.github.com/users/k4kfh/repos","events_url":"https://api.github.com/users/k4kfh/events{/privacy}","received_events_url":"https://api.github.com/users/k4kfh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-07-09T00:09:53Z","updated_at":"2016-07-11T07:33:10Z","closed_at":null,"body":"Whenever I close a JMRI turnout that's assigned to a CMRI bit, the console gives an error like these:\r\n\r\n```\r\n2016-07-07 16:21:27,084 jmrix.AbstractMRTrafficController     ERROR - reply complete in unexpected state: 10 was 41 52 00 00 00 [Receive]\r\n2016-07-07 16:21:27,089 jmrix.AbstractMRTrafficController     ERROR - reply complete in unexpected state: 10 was 41 52 00 00 00 [Receive]\r\n2016-07-07 16:21:33,494 jmrix.AbstractMRTrafficController     ERROR - reply complete in unexpected state: 15 was 41 52 00 00 00 [Receive]\r\n2016-07-07 16:21:33,498 jmrix.AbstractMRTrafficController     ERROR - reply complete in unexpected state: 15 was 41 52 00 00 00 [Receive]\r\n2016-07-07 16:21:33,554 jmrix.AbstractMRTrafficController     ERROR - reply complete in unexpected state: 15 was 41 52 00 00 00 [Receive]\r\n```\r\n\r\nI've also run into some issues where the Arduino seems to be \"imagining\" bits. It will act on some random bit being set even if I don't have that bit set up to do anything in JMRI. I may be posting this in the wrong place; it very well could be a bug with JMRI, but I wanted to check here first.\r\n\r\nThanks for your patience. I know I've posted a ton of issues, so I appreciate your help."},"comment":{"url":"https://api.github.com/repos/madleech/ArduinoCMRI/issues/comments/231661506","html_url":"https://github.com/madleech/ArduinoCMRI/issues/6#issuecomment-231661506","issue_url":"https://api.github.com/repos/madleech/ArduinoCMRI/issues/6","id":231661506,"user":{"login":"madleech","id":1756799,"avatar_url":"https://avatars.githubusercontent.com/u/1756799?v=3","gravatar_id":"","url":"https://api.github.com/users/madleech","html_url":"https://github.com/madleech","followers_url":"https://api.github.com/users/madleech/followers","following_url":"https://api.github.com/users/madleech/following{/other_user}","gists_url":"https://api.github.com/users/madleech/gists{/gist_id}","starred_url":"https://api.github.com/users/madleech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madleech/subscriptions","organizations_url":"https://api.github.com/users/madleech/orgs","repos_url":"https://api.github.com/users/madleech/repos","events_url":"https://api.github.com/users/madleech/events{/privacy}","received_events_url":"https://api.github.com/users/madleech/received_events","type":"User","site_admin":false},"created_at":"2016-07-11T07:33:10Z","updated_at":"2016-07-11T07:33:10Z","body":"Just seen your earlier message; seems the JMRI devs came to the same conclusion as me. You'll need to convert your code to set a target value for the motor, and then check that each time through the main loop. It's not too complicated to do, just requires a different way of looking at the logic.\r\n\r\nThe other option is to not have any CMRI sensors set up; then JMRI won't send out POLL requests for it."}}
{"actor":{"display_login":"madleech"}}