浏览代码

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

Followup to #23005, #22778
tome9111991 3 年前
父节点
当前提交
2199ae77c8
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3
    3
      Marlin/src/lcd/e3v2/creality/dwin.cpp

+ 3
- 3
Marlin/src/lcd/e3v2/creality/dwin.cpp 查看文件

@@ -1659,7 +1659,7 @@ void _update_axis_value(const AxisEnum axis, const uint16_t x, const uint16_t y,
1659 1659
     else if (blink && draw_empty)
1660 1660
       DWIN_Draw_String(true, font8x16, Color_White, Color_Bg_Black, x, y, F("     "));
1661 1661
     else
1662
-      DWIN_Draw_FloatValue(true, true, 0, font8x16, Color_White, Color_Bg_Black, 3, 1, x, y, p * 10);
1662
+      DWIN_Draw_FloatValue(true, true, 0, font8x16, Color_White, Color_Bg_Black, 3, 1, x, y, p);
1663 1663
   }
1664 1664
 }
1665 1665
 
@@ -1769,11 +1769,11 @@ void update_variable() {
1769 1769
   if (BABY_Z_VAR != _offset) {
1770 1770
     _offset = BABY_Z_VAR;
1771 1771
     if (BABY_Z_VAR < 0) {
1772
-      Draw_Stat_Float(207, 417, -_offset * 100);
1772
+      Draw_Stat_Float(207, 417, -_offset);
1773 1773
       DWIN_Draw_String(true, font8x16, Color_White, Color_Bg_Black, 205, 419, F("-"));
1774 1774
     }
1775 1775
     else {
1776
-      Draw_Stat_Float(207, 417, _offset * 100);
1776
+      Draw_Stat_Float(207, 417, _offset);
1777 1777
       DWIN_Draw_String(true, font8x16, Color_White, Color_Bg_Black, 205, 419, F(" "));
1778 1778
     }
1779 1779
   }

正在加载...
取消
保存