{"action":"created","issue":{"url":"https://api.github.com/repos/PX4/NuttX/issues/54","labels_url":"https://api.github.com/repos/PX4/NuttX/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/PX4/NuttX/issues/54/comments","events_url":"https://api.github.com/repos/PX4/NuttX/issues/54/events","html_url":"https://github.com/PX4/NuttX/issues/54","id":67936703,"number":54,"title":"stm32f4 i2c: improper handing of end of read","user":{"login":"KIrill-ka","id":2815206,"avatar_url":"https://avatars.githubusercontent.com/u/2815206?v=3","gravatar_id":"","url":"https://api.github.com/users/KIrill-ka","html_url":"https://github.com/KIrill-ka","followers_url":"https://api.github.com/users/KIrill-ka/followers","following_url":"https://api.github.com/users/KIrill-ka/following{/other_user}","gists_url":"https://api.github.com/users/KIrill-ka/gists{/gist_id}","starred_url":"https://api.github.com/users/KIrill-ka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KIrill-ka/subscriptions","organizations_url":"https://api.github.com/users/KIrill-ka/orgs","repos_url":"https://api.github.com/users/KIrill-ka/repos","events_url":"https://api.github.com/users/KIrill-ka/events{/privacy}","received_events_url":"https://api.github.com/users/KIrill-ka/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-04-12T17:24:26Z","updated_at":"2015-04-22T17:43:57Z","closed_at":null,"body":"Stm32f4 reference manual* proposes the exact procedure how ACK and STOP bits are set during i2c read. Current code fails to implement that. As a result we have to deal with i2c errors (in particular with ms5611 which appears to be quite sensitive to misplaced ACKs). Current code works ok if interrupt latency is low enough. But if loaded it ends up with missing ACKs and STOPs. When proper logic is used, ms5611 errors are gone (I tried this).\r\n\r\n*ST RM0090 section 27.3.3 Master receiver"},"comment":{"url":"https://api.github.com/repos/PX4/NuttX/issues/comments/95280501","html_url":"https://github.com/PX4/NuttX/issues/54#issuecomment-95280501","issue_url":"https://api.github.com/repos/PX4/NuttX/issues/54","id":95280501,"user":{"login":"davids5","id":1945821,"avatar_url":"https://avatars.githubusercontent.com/u/1945821?v=3","gravatar_id":"","url":"https://api.github.com/users/davids5","html_url":"https://github.com/davids5","followers_url":"https://api.github.com/users/davids5/followers","following_url":"https://api.github.com/users/davids5/following{/other_user}","gists_url":"https://api.github.com/users/davids5/gists{/gist_id}","starred_url":"https://api.github.com/users/davids5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davids5/subscriptions","organizations_url":"https://api.github.com/users/davids5/orgs","repos_url":"https://api.github.com/users/davids5/repos","events_url":"https://api.github.com/users/davids5/events{/privacy}","received_events_url":"https://api.github.com/users/davids5/received_events","type":"User","site_admin":false},"created_at":"2015-04-22T17:43:57Z","updated_at":"2015-04-22T17:43:57Z","body":"@KIrill-ka \r\n\r\nI am trying to integrate and test your changes, I have copied the code from above but I am getting \r\n : fatal: corrupt patch at line 183\r\n\r\nwould you please re-run the diff and attach or do a PR\r\n\r\nThank you,\r\n\r\nDavid"}}