Better alignment of elapsed print time

This commit is contained in:
Scott Lahteine
2016-12-04 21:09:12 -06:00
parent 0b9b529745
commit 9d88a61d52
3 changed files with 39 additions and 23 deletions

View File

@ -733,12 +733,12 @@ static void lcd_implementation_status_screen() {
#endif // LCD_WIDTH >= 20 && SDSUPPORT
lcd.setCursor(LCD_WIDTH - 6, 2);
lcd.print(LCD_STR_CLOCK[0]);
char buffer[10];
duration_t elapsed = print_job_timer.duration();
elapsed.toDigital(buffer);
uint8_t len = elapsed.toDigital(buffer);
lcd.setCursor(LCD_WIDTH - len - 1, 2);
lcd.print(LCD_STR_CLOCK[0]);
lcd_print(buffer);
#endif // LCD_HEIGHT > 3