|
@@ -27,6 +27,8 @@
|
27
|
27
|
* Implementation of the LCD display routines for a Hitachi HD44780 display. These are common LCD character displays.
|
28
|
28
|
**/
|
29
|
29
|
|
|
30
|
+#include "timestamp_t.h"
|
|
31
|
+
|
30
|
32
|
extern volatile uint8_t buttons; //an extended version of the last checked buttons in a bit array.
|
31
|
33
|
|
32
|
34
|
////////////////////////////////////
|
|
@@ -760,15 +762,11 @@ static void lcd_implementation_status_screen() {
|
760
|
762
|
lcd.setCursor(LCD_WIDTH - 6, 2);
|
761
|
763
|
lcd.print(LCD_STR_CLOCK[0]);
|
762
|
764
|
|
763
|
|
- uint16_t time = print_job_timer.duration() / 60;
|
764
|
|
- if (time != 0) {
|
765
|
|
- lcd.print(itostr2(time / 60));
|
766
|
|
- lcd.print(':');
|
767
|
|
- lcd.print(itostr2(time % 60));
|
768
|
|
- }
|
769
|
|
- else {
|
770
|
|
- lcd_printPGM(PSTR("--:--"));
|
771
|
|
- }
|
|
765
|
+ char buffer[10];
|
|
766
|
+ timestamp_t time(print_job_timer.duration());
|
|
767
|
+ time.toString(buffer, true);
|
|
768
|
+ if (time.timestamp != 0) lcd_print(buffer);
|
|
769
|
+ else lcd_printPGM(PSTR("--:--"));
|
772
|
770
|
|
773
|
771
|
#endif // LCD_HEIGHT > 3
|
774
|
772
|
|