libhal / SJSU-Dev2

Firmware platform written by San Jose State University for building application for embedded systems
Apache License 2.0
42 stars 63 forks source link

Fixed EEPROM driver #1304

Closed harmandersihra closed 4 years ago

harmandersihra commented 4 years ago

Turns out there was an exclamation mark in the line checking the status bit for the program operation, and we were using the wrong bit to clear the status register too. Also it turns out we could drop the max timeout down to 5ms after that change.

There was an issue with program() not being called at the right time, so line 175 had to be changed. It calls it one iteration of the loop earlier.

There were also a couple of typos.

harmandersihra commented 4 years ago

This should fix #1034 as well. Trying to link it to this PR.