cmd_eeprom: bug fix for i2c read/write