Skip to content

Commit 16c6d3d

Browse files
authored
Update DisplayNixie3x.cpp
write hour, minute, and seconds to RTC too
1 parent 5323e42 commit 16c6d3d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Firmware NCS314 HW v3.x/DisplayNixie3x/src/DisplayNixie3x.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,10 @@ int main(int argc, char* argv[]) {
285285
date.tm_wday = timeinfo->tm_wday;
286286
date.tm_mon = timeinfo->tm_mon + 1;
287287
date.tm_year = timeinfo->tm_year - 100;
288+
date.tm_hour = timeinfo->tm_hour;
289+
date.tm_min = timeinfo->tm_min;
290+
date.tm_sec = timeinfo->tm_sec;
291+
288292
writeRTCDate(date);
289293

290294
if (wiringPiSPISetupMode (0, 500000, 3)) { // 1 - Arduino Photo, 3 - Production

0 commit comments

Comments
 (0)