Skip to content

Commit

Permalink
final edit to fix #54 #bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
pyr0ball committed Oct 29, 2019
1 parent a09a5c8 commit 81fb71a
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -12,7 +12,6 @@ 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);
Expand Down Expand Up @@ -85,4 +84,4 @@ void resetConfig() {
TRG_DUR = TRG_DUR_DEFAULT;
Hyst = HYST_DEFAULT;
voltMeterConstant = VM_CONST_DEFAULT;
}
}

1 comment on commit 81fb71a

@loredan
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, that needs to be there, otherwise values will not be reset

Please sign in to comment.