🐛 Fix E3V2 (CrealityUI) position display (#23023)

Followup to #23005, #22778
x301
tome9111991 3 years ago committed by Scott Lahteine
parent 12f8168d1e
commit 66a274452c

@ -1659,7 +1659,7 @@ void _update_axis_value(const AxisEnum axis, const uint16_t x, const uint16_t y,
else if (blink && draw_empty) else if (blink && draw_empty)
DWIN_Draw_String(true, font8x16, Color_White, Color_Bg_Black, x, y, F(" ")); DWIN_Draw_String(true, font8x16, Color_White, Color_Bg_Black, x, y, F(" "));
else else
DWIN_Draw_FloatValue(true, true, 0, font8x16, Color_White, Color_Bg_Black, 3, 1, x, y, p * 10); DWIN_Draw_FloatValue(true, true, 0, font8x16, Color_White, Color_Bg_Black, 3, 1, x, y, p);
} }
} }
@ -1769,11 +1769,11 @@ void update_variable() {
if (BABY_Z_VAR != _offset) { if (BABY_Z_VAR != _offset) {
_offset = BABY_Z_VAR; _offset = BABY_Z_VAR;
if (BABY_Z_VAR < 0) { if (BABY_Z_VAR < 0) {
Draw_Stat_Float(207, 417, -_offset * 100); Draw_Stat_Float(207, 417, -_offset);
DWIN_Draw_String(true, font8x16, Color_White, Color_Bg_Black, 205, 419, F("-")); DWIN_Draw_String(true, font8x16, Color_White, Color_Bg_Black, 205, 419, F("-"));
} }
else { else {
Draw_Stat_Float(207, 417, _offset * 100); Draw_Stat_Float(207, 417, _offset);
DWIN_Draw_String(true, font8x16, Color_White, Color_Bg_Black, 205, 419, F(" ")); DWIN_Draw_String(true, font8x16, Color_White, Color_Bg_Black, 205, 419, F(" "));
} }
} }

Loading…
Cancel
Save