Fix permyriad progress bar (#16460)
This commit is contained in:
parent
93e35880ce
commit
d70dad6807
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Reference in a new issue