{"action":"opened","issue":{"url":"https://api.github.com/repos/chipKIT32/chipKIT-core/issues/300","repository_url":"https://api.github.com/repos/chipKIT32/chipKIT-core","labels_url":"https://api.github.com/repos/chipKIT32/chipKIT-core/issues/300/labels{/name}","comments_url":"https://api.github.com/repos/chipKIT32/chipKIT-core/issues/300/comments","events_url":"https://api.github.com/repos/chipKIT32/chipKIT-core/issues/300/events","html_url":"https://github.com/chipKIT32/chipKIT-core/issues/300","id":189903295,"number":300,"title":"EEPROM: getBuffer() writes 0xFF values back into EEPROM table when page is erased","user":{"login":"JacobChrist","id":198251,"avatar_url":"https://avatars.githubusercontent.com/u/198251?v=3","gravatar_id":"","url":"https://api.github.com/users/JacobChrist","html_url":"https://github.com/JacobChrist","followers_url":"https://api.github.com/users/JacobChrist/followers","following_url":"https://api.github.com/users/JacobChrist/following{/other_user}","gists_url":"https://api.github.com/users/JacobChrist/gists{/gist_id}","starred_url":"https://api.github.com/users/JacobChrist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JacobChrist/subscriptions","organizations_url":"https://api.github.com/users/JacobChrist/orgs","repos_url":"https://api.github.com/users/JacobChrist/repos","events_url":"https://api.github.com/users/JacobChrist/events{/privacy}","received_events_url":"https://api.github.com/users/JacobChrist/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-17T01:06:35Z","updated_at":"2016-11-17T01:06:35Z","closed_at":null,"body":"In Deeprom.c in EEPROM library utils.\r\n\r\nIt looks like this feature was in the code at one time then removed.  Uncomment code that prevents this so that final function looks like this:\r\n\r\n``` c++\r\nvoid getBuffer(uint8_t * buffer)\r\n{\r\n\teeSeg tempSeg;\r\n\tuint8_t tempData;\r\n\r\n \tint i;\r\n\r\n\t//Cycle through buffer\r\n\tfor(i=0; i < max_address; i++)\r\n\t{\r\n\t\t//If data in buffer does not equal 0xFF write to flash\r\n\t\tif(buffer[i] != 0xFF) {\r\n\t\t\ttempData = buffer[i];\r\n\t\t\ttempSeg = pack(i, tempData);\r\n\t\t\twriteFlashWord((void*)&eedata_addr[0][i],tempSeg.data);\r\n\t\t}\r\n\t}\r\n}\r\n```\r\n"}}
{"actor":{"display_login":"JacobChrist"}}