Fix clearing stored config on restore
This commit is contained in:
parent
0dc3e5913e
commit
62770a65d8
2 changed files with 2 additions and 2 deletions
|
|
@ -69,7 +69,7 @@ void restoreConfig() {
|
|||
}
|
||||
|
||||
long longTemp;
|
||||
EEPROM.get(VM_CONST_DEFAULT, longTemp);
|
||||
EEPROM.get(VM_CONST_ADDRESS, longTemp);
|
||||
if (longTemp < 1000000L || longTemp > 1200000L) {
|
||||
resetEEPROM();
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ update the voltMeterConstant variable in pP_config.h with the correct value
|
|||
|
||||
void readVin() {
|
||||
VOld = Vin;
|
||||
Vin = readVcc(), DEC;
|
||||
Vin = readVcc();
|
||||
followerLong = followerThrs * 1023L;
|
||||
compLong = compThrs * 1023L;
|
||||
followerInt = (long long) followerLong / Vin;
|
||||
|
|
|
|||
Loading…
Reference in a new issue