mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-27 13:56:24 +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() {
|
uint32_t getProgress_seconds_elapsed() {
|
||||||
const duration_t elapsed = IFPC(print_job_timer.duration(), 0);
|
return IFPC(print_job_timer.duration(), 0);
|
||||||
return elapsed.value;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#if ENABLED(PRINTCOUNTER)
|
#if ENABLED(PRINTCOUNTER)
|
||||||
|
Loading…
Reference in New Issue
Block a user