Update current library to accommodate small devices.
Diff: I2CEEPROM.cpp
- Revision:
- 1:be33b27b023d
- Parent:
- 0:bcc1f1890330
- Child:
- 2:5c40bd66662e
diff -r bcc1f1890330 -r be33b27b023d I2CEEPROM.cpp --- a/I2CEEPROM.cpp Tue Mar 29 11:59:40 2016 +0000 +++ b/I2CEEPROM.cpp Tue Oct 11 16:32:12 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(1); - } + wait_ms(5); + //} } bool I2CEEPROM::checkSpace(size_t address, size_t size) {