summaryrefslogtreecommitdiff
path: root/firmware/drivers/eeprom_24cxx.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/eeprom_24cxx.c')
-rw-r--r--firmware/drivers/eeprom_24cxx.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/firmware/drivers/eeprom_24cxx.c b/firmware/drivers/eeprom_24cxx.c
index 4f7362ec82..33c02f1bc8 100644
--- a/firmware/drivers/eeprom_24cxx.c
+++ b/firmware/drivers/eeprom_24cxx.c
@@ -308,7 +308,7 @@ bool eeprom_24cxx_read_byte(unsigned int address, char *c)
308bool eeprom_24cxx_write_byte(unsigned int address, char c) 308bool eeprom_24cxx_write_byte(unsigned int address, char c)
309{ 309{
310 int ret; 310 int ret;
311 int count = 10; 311 int count = 100;
312 312
313 if (address >= EEPROM_SIZE) 313 if (address >= EEPROM_SIZE)
314 { 314 {
@@ -318,10 +318,6 @@ bool eeprom_24cxx_write_byte(unsigned int address, char c)
318 318
319 do { 319 do {
320 ret = sw_i2c_write_byte(address, c); 320 ret = sw_i2c_write_byte(address, c);
321 if (ret < 0)
322 {
323 logf("EEPROM Fail: %d/%d", ret, address);
324 }
325 } while (ret < 0 && count--) ; 321 } while (ret < 0 && count--) ;
326 322
327 if (ret < 0) 323 if (ret < 0)