瀏覽代碼

Patch _lcd_level_bed draw to fix flicker, show proper offset

Scott Lahteine 9 年之前
父節點
當前提交
097cc75ba8
共有 1 個檔案被更改,包括 5 行新增2 行删除
  1. 5
    2
      Marlin/ultralcd.cpp

+ 5
- 2
Marlin/ultralcd.cpp 查看文件

@@ -2449,9 +2449,12 @@ char* ftostr52(const float& x) {
2449 2449
       if (max_software_endstops) NOMORE(current_position[Z_AXIS], Z_MAX_POS);
2450 2450
       encoderPosition = 0;
2451 2451
       line_to_current(Z_AXIS);
2452
-      lcdDrawUpdate = 2;
2452
+      lcdDrawUpdate = 1;
2453
+    }
2454
+    if (lcdDrawUpdate) {
2455
+      float v = current_position[Z_AXIS] - MESH_HOME_SEARCH_Z;
2456
+      lcd_implementation_drawedit(PSTR(MSG_MOVE_Z), ftostr43(v + (v < 0 ? -0.0001 : 0.0001)));
2453 2457
     }
2454
-    if (lcdDrawUpdate) lcd_implementation_drawedit(PSTR("Z"), ftostr43(current_position[Z_AXIS]));
2455 2458
     static bool debounce_click = false;
2456 2459
     if (LCD_CLICKED) {
2457 2460
       if (!debounce_click) {

Loading…
取消
儲存