Fix permyriad progress bar (#16460)
This commit is contained in:
parent
93e35880ce
commit
d70dad6807
|
@ -438,7 +438,7 @@ void MarlinUI::draw_status_screen() {
|
|||
if (p != lastProgress) {
|
||||
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 (progress == 0) {
|
||||
|
|
Loading…
Reference in a new issue