diff --git a/simulation/src/simeeprom.cpp b/simulation/src/simeeprom.cpp index 5c960ec..c3fb3c5 100644 --- a/simulation/src/simeeprom.cpp +++ b/simulation/src/simeeprom.cpp @@ -23,6 +23,13 @@ uint8_t EEPROMClass::read( int idx ) void EEPROMClass::write( int idx, uint8_t val ) { printf("Writing to EEPROM address %u = %u\n", idx, val); + + if(val == someFakeEEPROM_memory[idx]) + { + //Value unchanged, do nothing. + return; + } + someFakeEEPROM_memory[idx] = val; if(autoUpdate && storage)