Allow stopwatch and printcounter to go over 18 hours

This commit is contained in:
Scott Lahteine
2016-07-12 19:03:42 -07:00
parent 6080924589
commit e481b79af1
7 changed files with 24 additions and 26 deletions

View File

@ -1172,8 +1172,7 @@ inline void get_serial_commands() {
print_job_timer.stop();
char time[30];
millis_t t = print_job_timer.duration();
int hours = t / 60 / 60, minutes = (t / 60) % 60;
sprintf_P(time, PSTR("%i " MSG_END_HOUR " %i " MSG_END_MINUTE), hours, minutes);
sprintf_P(time, PSTR("%i " MSG_END_HOUR " %i " MSG_END_MINUTE), int(t / 60 / 60), int(t / 60) % 60);
SERIAL_ECHO_START;
SERIAL_ECHOLN(time);
lcd_setstatus(time, true);