Skip to content

Commit 50272a3

Browse files
committed
Fix for Dusk2Dawn problem?
1 parent 2ccae7e commit 50272a3

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
@@ -1467,7 +1467,7 @@ void calcSun(){
14671467
int m = rtcGetMonth();
14681468
int d = rtcGetDate();
14691469
blankDisplay(0,5,false); //immediately blank display so we can fade in from it elegantly
1470-
Dusk2Dawn here(readEEPROM(10,true)/10, readEEPROM(12,true)/10, (float(readEEPROM(14,false))-100)/4);
1470+
Dusk2Dawn here(float(readEEPROM(10,true))/10, float(readEEPROM(12,true))/10, (float(readEEPROM(14,false))-100)/4);
14711471
//Today
14721472
sunDate = d;
14731473
sunRise1 = here.sunrise(y,m,d,isDST(y,m,d)); //TODO: unreliable if event is before time change on DST change day. Optionally if isDSTChangeDay() and event is <2h de-correct for it - maybe modify the library to do this - as when 2h overlaps in fall, we don't know whether the output has been precorrected.

0 commit comments

Comments
 (0)