mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-23 20:18:52 +00:00
Fix null exception due to duration_t of zero (#12207)
This commit is contained in:
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…
Reference in New Issue
Block a user