Skip to content

Commit

Permalink
Fix null exception due to duration_t of zero (#12207)
Browse files Browse the repository at this point in the history
  • Loading branch information
gjdodd authored and thinkyhead committed Oct 24, 2018
1 parent a906171 commit 5d487ef
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Marlin/src/lcd/extensible_ui/ui_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5d487ef

Please sign in to comment.