diff options
Diffstat (limited to 'src/usr/i2c/eepromdd.C')
-rwxr-xr-x | src/usr/i2c/eepromdd.C | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/usr/i2c/eepromdd.C b/src/usr/i2c/eepromdd.C index 8ea9b94c1..56885d874 100755 --- a/src/usr/i2c/eepromdd.C +++ b/src/usr/i2c/eepromdd.C @@ -41,6 +41,7 @@ #include <errl/errludtarget.H> #include <targeting/common/targetservice.H> #include <devicefw/driverif.H> +#include <sys/time.h> #include <i2c/eepromddreasoncodes.H> #include <i2c/eepromif.H> #include "eepromdd.H" @@ -466,6 +467,10 @@ errlHndl_t eepromWrite ( TARGETING::Target * i_target, break; } + // Wait 5ms for EEPROM o write data to its internal memory + nanosleep(0,5 * NS_PER_MSEC); // 5 msec + + // Update how much data was written total_bytes_written += loop_data_length; @@ -484,7 +489,6 @@ errlHndl_t eepromWrite ( TARGETING::Target * i_target, break; } - TRACSCOMP( g_trac_eepromr, "EEPROM WRITE END : Chip: %02d : Offset %.2X : Len %d", i_i2cInfo.chip, i_i2cInfo.offset, io_buflen ); |