{"action":"created","issue":{"url":"https://api.github.com/repos/chipKIT32/chipKIT32-MAX/issues/310","labels_url":"https://api.github.com/repos/chipKIT32/chipKIT32-MAX/issues/310/labels{/name}","comments_url":"https://api.github.com/repos/chipKIT32/chipKIT32-MAX/issues/310/comments","events_url":"https://api.github.com/repos/chipKIT32/chipKIT32-MAX/issues/310/events","html_url":"https://github.com/chipKIT32/chipKIT32-MAX/issues/310","id":10344987,"number":310,"title":"TWI I2C Wire Library Limited to 1 Byte in Slave Mode","user":{"login":"rei-vilo","id":951776,"avatar_url":"https://avatars.githubusercontent.com/u/951776?v=3","gravatar_id":"","url":"https://api.github.com/users/rei-vilo","html_url":"https://github.com/rei-vilo","followers_url":"https://api.github.com/users/rei-vilo/followers","following_url":"https://api.github.com/users/rei-vilo/following{/other_user}","gists_url":"https://api.github.com/users/rei-vilo/gists{/gist_id}","starred_url":"https://api.github.com/users/rei-vilo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rei-vilo/subscriptions","organizations_url":"https://api.github.com/users/rei-vilo/orgs","repos_url":"https://api.github.com/users/rei-vilo/repos","events_url":"https://api.github.com/users/rei-vilo/events{/privacy}","received_events_url":"https://api.github.com/users/rei-vilo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2013-01-26T23:39:55Z","updated_at":"2015-05-11T15:46:47Z","closed_at":null,"body":"From http://www.chipkit.org/forum/viewtopic.php?f=7&t=1076\r\n\r\n>\r\nIt is due to this section of code in the twi.c file in the wire library utilities folder:\r\n>\r\n```\r\ncase TW_SR_DATA:\r\n   twi_rxBuffer[0] = ptwi->ixRcv.reg;\r\n   twi_onSlaveReceive(twi_rxBuffer, 1);\r\n   // Release clock line\r\n   ptwi->ixCon.set = (1 << _I2CCON_SCLREL);\r\n   ptwi->ixStat.clr = (1 << _I2CSTAT_I2COV) | (1 << _I2CSTAT_RBF);\r\n   break;\r\n```\r\n>\r\nThe twi_onSlaveReceive(twi_rxBuffer, 1); always has a 1 as the parameter and will be called every time data is received. Hopefully I'll have time soon to adjust that section to count and wait until a transmission is done.\r\n>\r\n\r\nThank you for having a look and fixing this issue!"},"comment":{"url":"https://api.github.com/repos/chipKIT32/chipKIT32-MAX/issues/comments/100952098","html_url":"https://github.com/chipKIT32/chipKIT32-MAX/issues/310#issuecomment-100952098","issue_url":"https://api.github.com/repos/chipKIT32/chipKIT32-MAX/issues/310","id":100952098,"user":{"login":"rei-vilo","id":951776,"avatar_url":"https://avatars.githubusercontent.com/u/951776?v=3","gravatar_id":"","url":"https://api.github.com/users/rei-vilo","html_url":"https://github.com/rei-vilo","followers_url":"https://api.github.com/users/rei-vilo/followers","following_url":"https://api.github.com/users/rei-vilo/following{/other_user}","gists_url":"https://api.github.com/users/rei-vilo/gists{/gist_id}","starred_url":"https://api.github.com/users/rei-vilo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rei-vilo/subscriptions","organizations_url":"https://api.github.com/users/rei-vilo/orgs","repos_url":"https://api.github.com/users/rei-vilo/repos","events_url":"https://api.github.com/users/rei-vilo/events{/privacy}","received_events_url":"https://api.github.com/users/rei-vilo/received_events","type":"User","site_admin":false},"created_at":"2015-05-11T15:46:47Z","updated_at":"2015-05-11T15:46:47Z","body":"Well, maybe your turn to take another board!"}}