Browse Source

Patch _lcd_level_bed draw to fix flicker, show proper offset

Scott Lahteine 9 years ago
parent
commit
097cc75ba8
1 changed files with 5 additions and 2 deletions
  1. 5
    2
      Marlin/ultralcd.cpp

+ 5
- 2
Marlin/ultralcd.cpp View File

2449
       if (max_software_endstops) NOMORE(current_position[Z_AXIS], Z_MAX_POS);
2449
       if (max_software_endstops) NOMORE(current_position[Z_AXIS], Z_MAX_POS);
2450
       encoderPosition = 0;
2450
       encoderPosition = 0;
2451
       line_to_current(Z_AXIS);
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
     static bool debounce_click = false;
2458
     static bool debounce_click = false;
2456
     if (LCD_CLICKED) {
2459
     if (LCD_CLICKED) {
2457
       if (!debounce_click) {
2460
       if (!debounce_click) {

Loading…
Cancel
Save