Skip to content

Commit e27c116

Browse files
committed
Bugfix to hard reset eeprom dst flag clear
1 parent f483a32 commit e27c116

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arduino-nixie/arduino-nixie.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ void initEEPROM(bool hard){
774774
if(hard) writeEEPROM(7,0,false); //7: Alt function preset
775775
//8: TODO functions/pages enabled (bitmask)
776776
//9: free
777-
writeEEPROM(15,0,false); //15: DST on flag - will be set at first RTC check, but set to off to trigger tube display
777+
if(hard) writeEEPROM(15,0,false); //15: last known DST on flag - clear on hard reset (to match the reset RTC/auto DST/anti-poisoning settings to trigger midnight tubes as a tube test)
778778
//then the options menu defaults
779779
bool isInt = false;
780780
for(byte opt=0; opt<sizeof(optsLoc); opt++) {

0 commit comments

Comments
 (0)