Fix EEPROM saving issue when issuing a RESET command via a serial terminal.
This commit is contained in:
parent
5e69da1139
commit
22d4535e79
2 changed files with 5 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -61,6 +61,7 @@
|
|||
#endif
|
||||
|
||||
void resetEEPROM();
|
||||
void resetConfig();
|
||||
void restoreConfig();
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue