Set EEPROM write limit to 10k
This commit is contained in:
parent
3f10fd6abc
commit
e543fb1fb5
|
|
@ -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]
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue