Fix PFW638 - remaining/elapsed time >100h displayed in hours
This commit is contained in:
parent
1e05e1189d
commit
33a29cd416
1 changed files with 4 additions and 1 deletions
|
@ -614,7 +614,10 @@ void lcdui_print_time(void)
|
|||
if (feedmultiply != 100)
|
||||
suff_doubt = '?';
|
||||
}
|
||||
chars = lcd_printf_P(_N("%c%02u:%02u%c%c"), LCD_STR_CLOCK[0], print_t / 60, print_t % 60, suff, suff_doubt);
|
||||
if (print_t < 6000) //time<100h
|
||||
chars = lcd_printf_P(_N("%c%02u:%02u%c%c"), LCD_STR_CLOCK[0], print_t / 60, print_t % 60, suff, suff_doubt);
|
||||
else //time>=100h
|
||||
chars = lcd_printf_P(_N("%c%3uh %c%c"), LCD_STR_CLOCK[0], print_t / 60, suff, suff_doubt);
|
||||
}
|
||||
else
|
||||
chars = lcd_printf_P(_N("%c--:-- "), LCD_STR_CLOCK[0]);
|
||||
|
|
Loading…
Add table
Reference in a new issue