Renamed timestamp_t to duration_t

This commit is contained in:
João Brázio
2016-07-24 03:13:35 +01:00
parent c287846f46
commit 62d96d72f3
7 changed files with 180 additions and 152 deletions

View File

@@ -27,7 +27,7 @@
* Implementation of the LCD display routines for a Hitachi HD44780 display. These are common LCD character displays.
**/
#include "timestamp_t.h"
#include "duration_t.h"
extern volatile uint8_t buttons; //an extended version of the last checked buttons in a bit array.
@@ -763,10 +763,9 @@ static void lcd_implementation_status_screen() {
lcd.print(LCD_STR_CLOCK[0]);
char buffer[10];
timestamp_t time(print_job_timer.duration());
time.toString(buffer, true);
if (time.timestamp != 0) lcd_print(buffer);
else lcd_printPGM(PSTR("--:--"));
duration_t elapsed = print_job_timer.duration();
elapsed.toDigital(buffer);
lcd_print(buffer);
#endif // LCD_HEIGHT > 3