Browse Source

Fix permyriad progress bar (#16460)

Justin 5 years ago
parent
commit
d70dad6807
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/src/lcd/dogm/status_screen_DOGM.cpp

+ 1
- 1
Marlin/src/lcd/dogm/status_screen_DOGM.cpp View File

438
       if (p != lastProgress) {
438
       if (p != lastProgress) {
439
         lastProgress = p;
439
         lastProgress = p;
440
 
440
 
441
-        progress_bar_solid_width = u8g_uint_t((PROGRESS_BAR_WIDTH - 2) * progress / (PROGRESS_SCALE) * 0.01f);
441
+        progress_bar_solid_width = u8g_uint_t((PROGRESS_BAR_WIDTH - 2) * (progress / (PROGRESS_SCALE)) * 0.01f);
442
 
442
 
443
         #if ENABLED(DOGM_SD_PERCENT)
443
         #if ENABLED(DOGM_SD_PERCENT)
444
           if (progress == 0) {
444
           if (progress == 0) {

Loading…
Cancel
Save