Browse Source

Fix permyriad progress bar (#16460)

pull/1/head
Justin 5 years ago
committed by Scott Lahteine
parent
commit
d70dad6807
  1. 2
      Marlin/src/lcd/dogm/status_screen_DOGM.cpp

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

@ -438,7 +438,7 @@ void MarlinUI::draw_status_screen() {
if (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);
#if ENABLED(DOGM_SD_PERCENT) #if ENABLED(DOGM_SD_PERCENT)
if (progress == 0) { if (progress == 0) {

Loading…
Cancel
Save