Skip to content

Commit

Permalink
Merge pull request #51 from foodbandlt/bugfix
Browse files Browse the repository at this point in the history
Fix clearing stored config on restore
  • Loading branch information
pyr0ball committed Oct 28, 2019
2 parents 266ae5c + 62770a6 commit db1215d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -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 {
Expand Down
Expand Up @@ -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;
Expand Down

0 comments on commit db1215d

Please sign in to comment.