Browse Source

Update status_screen_DOGM.cpp

pull/1/head
Scott Lahteine 5 years ago
committed by GitHub
parent
commit
326d5b84e7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      Marlin/src/lcd/dogm/status_screen_DOGM.cpp

2
Marlin/src/lcd/dogm/status_screen_DOGM.cpp

@ -397,7 +397,7 @@ void MarlinUI::draw_status_screen() {
; ;
duration_t elapsed = print_job_timer.duration(); duration_t elapsed = print_job_timer.duration();
const uint8_t p = progress & 0xFF, ev = elapsed.value & 0xFF; const uint8_t p = progress & 0xFF, ev = elapsed.value & 0xFF;
if (progress > 1 || p != lastProgress) { if (p != lastProgress) {
lastProgress = p; lastProgress = p;
progress_bar_solid_width = u8g_uint_t((PROGRESS_BAR_WIDTH - 2) * progress / (PROGRESS_SCALE) * 0.01f); progress_bar_solid_width = u8g_uint_t((PROGRESS_BAR_WIDTH - 2) * progress / (PROGRESS_SCALE) * 0.01f);

Loading…
Cancel
Save