Fix null exception due to duration_t of zero (#12207)

2.0.x
gjdodd 6 years ago committed by Scott Lahteine
parent a9061714f2
commit 5d487ef40e

@ -445,8 +445,7 @@ namespace UI {
}
uint32_t getProgress_seconds_elapsed() {
const duration_t elapsed = IFPC(print_job_timer.duration(), 0);
return elapsed.value;
return IFPC(print_job_timer.duration(), 0);
}
#if ENABLED(PRINTCOUNTER)

Loading…
Cancel
Save