Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: I2CEEPROM.cpp
- Revision:
- 2:5c40bd66662e
- Parent:
- 1:be33b27b023d
- Child:
- 3:16227c782723
--- 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) {