Skip to content

Commit 6ec722c

Browse files
committed
bugfix setting timer seconds
1 parent 5aff6c7 commit 6ec722c

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
@@ -148,7 +148,7 @@ word signalRemain = 0; //alarm/timer signal timeout counter, seconds
148148
word snoozeRemain = 0; //snooze timeout counter, seconds
149149
byte timerState = 0; //bit 0 is stop/run, bit 1 is down/up, bit 2 is runout repeat / short signal, bit 3 is runout chrono, bit 4 is lap display
150150
word timerInitialMins = 0; //timer original duration setting, minutes - up to 99h 59m (5999m)
151-
byte timerInitialSecs = 0; //timer original duration setting, seconds - up to 59s
151+
word timerInitialSecs = 0; //timer original duration setting, seconds - up to 59s (could be a byte, but I had trouble casting to unsigned int when doing the math to set timerTime)
152152
unsigned long timerTime = 0; //timestamp of timer target / chrono origin (while running) or duration (while stopped)
153153
unsigned long timerLapTime = 0;
154154
const byte millisCorrectionInterval = 30; //used to calibrate millis() to RTC for timer/chrono purposes

0 commit comments

Comments
 (0)