Fix EEPROM saving issue when issuing a RESET command via a serial terminal.

This commit is contained in:
Ken 2019-10-30 01:00:35 -04:00
parent 5e69da1139
commit 22d4535e79
2 changed files with 5 additions and 1 deletions

View file

@ -12,6 +12,9 @@ long voltMeterConstant = VM_CONST_DEFAULT;
uint8_t pP_i2c_address = 0xa0;
void resetEEPROM() {
resetConfig();
EEPROM.put(GAIN_FACTOR_ADDRESS, GAIN_FACTOR);
EEPROM.put(FOLLOWER_THRESHOLD_ADDRESS, followerThrs);
EEPROM.put(COMP_THRESHOLD_ADDRESS, compThrs);

View file

@ -61,6 +61,7 @@
#endif
void resetEEPROM();
void resetConfig();
void restoreConfig();
#endif
#endif