incremented stored reset by one for first time

pico-v0.1
alanbjohnston 3 years ago committed by GitHub
parent bb07b0daa8
commit 99f5b01b63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -183,7 +183,7 @@ void read_reset_count() {
reset_flag = 0xA07; reset_flag = 0xA07;
EEPROM.put(16, reset_flag); EEPROM.put(16, reset_flag);
stored_reset = 0; stored_reset = 0;
EEPROM.put(20, stored_reset); EEPROM.put(20, stored_reset + 1);
if (EEPROM.commit()) { if (EEPROM.commit()) {
Serial.println("EEPROM successfully committed"); Serial.println("EEPROM successfully committed");
} else { } else {

Loading…
Cancel
Save

Powered by TurnKey Linux.