diff --git a/Examples/SwitchMote/SwitchMote.ino b/Examples/SwitchMote/SwitchMote.ino index 17d79fa..eed5a73 100644 --- a/Examples/SwitchMote/SwitchMote.ino +++ b/Examples/SwitchMote/SwitchMote.ino @@ -153,6 +153,7 @@ void setup(void) #ifdef SERIAL_EN Serial.begin(SERIAL_BAUD); #endif + EEPROM.setMaxAllowedWrites(10000); EEPROM.readBlock(0, CONFIG); if (CONFIG.frequency!=RF69_433MHZ && CONFIG.frequency!=RF69_868MHZ && CONFIG.frequency!=RF69_915MHZ) // virgin CONFIG, expected [4,8,9] { diff --git a/Examples/SwitchMote/SwitchMote_withPIR.ino b/Examples/SwitchMote/SwitchMote_withPIR.ino index b9d5506..36f6b2c 100644 --- a/Examples/SwitchMote/SwitchMote_withPIR.ino +++ b/Examples/SwitchMote/SwitchMote_withPIR.ino @@ -170,6 +170,7 @@ void setup(void) #ifdef SERIAL_EN Serial.begin(SERIAL_BAUD); #endif + EEPROM.setMaxAllowedWrites(10000); EEPROM.readBlock(0, CONFIG); if (CONFIG.frequency!=RF69_433MHZ && CONFIG.frequency!=RF69_868MHZ && CONFIG.frequency!=RF69_915MHZ) // virgin CONFIG, expected [4,8,9] {