Update current library to accommodate small devices.
Diff: I2CEEPROM.cpp
- Revision:
- 2:5c40bd66662e
- Parent:
- 1:be33b27b023d
- Child:
- 3:16227c782723
diff -r be33b27b023d -r 5c40bd66662e I2CEEPROM.cpp --- a/I2CEEPROM.cpp Tue Oct 11 16:32:12 2016 +0000 +++ b/I2CEEPROM.cpp Tue Oct 11 19:28:41 2016 +0000 @@ -221,10 +221,10 @@ // The chip doesn't ACK while writing to the actual EEPROM // so loop trying to do a zero byte write until it is ACKed // by the chip. - //while (m_i2c.write(m_i2cAddress, 0, 0) != 0) { + while (m_i2c.write(m_i2cAddress, 0, 0) != 0) { // Wait for ack. - wait_ms(5); - //} + wait_ms(1); + } } bool I2CEEPROM::checkSpace(size_t address, size_t size) {