|
|
@ -52,6 +52,7 @@ bool PersistentStore::write_data(int &pos, const uint8_t *value, size_t size, ui
|
|
|
|
// so only write bytes that have changed!
|
|
|
|
// so only write bytes that have changed!
|
|
|
|
if (v != eeprom_read_byte(p)) {
|
|
|
|
if (v != eeprom_read_byte(p)) {
|
|
|
|
eeprom_write_byte(p, v);
|
|
|
|
eeprom_write_byte(p, v);
|
|
|
|
|
|
|
|
delay(2);
|
|
|
|
if (eeprom_read_byte(p) != v) {
|
|
|
|
if (eeprom_read_byte(p) != v) {
|
|
|
|
SERIAL_ECHO_MSG(MSG_ERR_EEPROM_WRITE);
|
|
|
|
SERIAL_ECHO_MSG(MSG_ERR_EEPROM_WRITE);
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|