ellensp
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
Marlin/src/lcd/marlinui.h
|
@ -248,7 +248,7 @@ public: |
|
|
static inline uint32_t _calculated_remaining_time() { |
|
|
static inline uint32_t _calculated_remaining_time() { |
|
|
const duration_t elapsed = print_job_timer.duration(); |
|
|
const duration_t elapsed = print_job_timer.duration(); |
|
|
const progress_t progress = _get_progress(); |
|
|
const progress_t progress = _get_progress(); |
|
|
return elapsed.value * (100 * (PROGRESS_SCALE) - progress) / progress; |
|
|
return progress ? elapsed.value * (100 * (PROGRESS_SCALE) - progress) / progress : 0; |
|
|
} |
|
|
} |
|
|
#if ENABLED(USE_M73_REMAINING_TIME) |
|
|
#if ENABLED(USE_M73_REMAINING_TIME) |
|
|
static uint32_t remaining_time; |
|
|
static uint32_t remaining_time; |
|
|