Browse Source

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

gjdodd 6 years ago
parent
commit
5d487ef40e
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      Marlin/src/lcd/extensible_ui/ui_api.cpp

+ 1
- 2
Marlin/src/lcd/extensible_ui/ui_api.cpp View File

445
   }
445
   }
446
 
446
 
447
   uint32_t getProgress_seconds_elapsed() {
447
   uint32_t getProgress_seconds_elapsed() {
448
-    const duration_t elapsed = IFPC(print_job_timer.duration(), 0);
449
-    return elapsed.value;
448
+    return IFPC(print_job_timer.duration(), 0);
450
   }
449
   }
451
 
450
 
452
   #if ENABLED(PRINTCOUNTER)
451
   #if ENABLED(PRINTCOUNTER)

Loading…
Cancel
Save