Browse Source

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

pull/1/head
gjdodd 6 years ago
committed by Scott Lahteine
parent
commit
5d487ef40e
  1. 3
      Marlin/src/lcd/extensible_ui/ui_api.cpp

3
Marlin/src/lcd/extensible_ui/ui_api.cpp

@ -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