We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04e3abf commit c1444e5Copy full SHA for c1444e5
Arduino_Pedelec_Controller/display.cpp
@@ -649,7 +649,17 @@ static void display_nokia_update_graphic()
649
//print the trip-time in the lower right corner (displayed in the last 5 characters in this line)
650
lcd.setCursorInPixels(84-5*6,5);
651
//todo: implement real trip time measurement, including timeouts. Currently it is only the time after the last reset
652
+#ifdef SUPPORT_RTC
653
+ if (now.hh<10)
654
+ lcd.print(MY_F("0"));
655
+ lcd.print(now.hh);
656
+ lcd.print(":");
657
+ if (now.mm<10)
658
659
+ lcd.print(now.mm);
660
+#else
661
printTime(millis() / 1000UL); //millis can be used, because they roll over only after 50 days
662
+#endif
663
}
664
#endif
665
0 commit comments