Browse Source

Manual bed leveling menu fixes.

lcdDrawUpdate = 2 helped a lot!
Edward Patel 10 years ago
parent
commit
a37c7ff16d
1 changed files with 5 additions and 2 deletions
  1. 5
    2
      Marlin/ultralcd.cpp

+ 5
- 2
Marlin/ultralcd.cpp View File

1797
       if (max_software_endstops && current_position[Z_AXIS] > Z_MAX_POS) current_position[Z_AXIS] = Z_MAX_POS;
1797
       if (max_software_endstops && current_position[Z_AXIS] > Z_MAX_POS) current_position[Z_AXIS] = Z_MAX_POS;
1798
       encoderPosition = 0;
1798
       encoderPosition = 0;
1799
       line_to_current();
1799
       line_to_current();
1800
-      lcdDrawUpdate = 1;
1800
+      lcdDrawUpdate = 2;
1801
     }
1801
     }
1802
     if (lcdDrawUpdate) lcd_implementation_drawedit(PSTR("Z"), ftostr43(current_position[Z_AXIS]));
1802
     if (lcdDrawUpdate) lcd_implementation_drawedit(PSTR("Z"), ftostr43(current_position[Z_AXIS]));
1803
     static bool debounce_click = false;
1803
     static bool debounce_click = false;
1828
           current_position[X_AXIS] = mbl.get_x(ix);
1828
           current_position[X_AXIS] = mbl.get_x(ix);
1829
           current_position[Y_AXIS] = mbl.get_y(iy);
1829
           current_position[Y_AXIS] = mbl.get_y(iy);
1830
           line_to_current();
1830
           line_to_current();
1831
-          lcdDrawUpdate = 1;
1831
+          lcdDrawUpdate = 2;
1832
         }
1832
         }
1833
       }
1833
       }
1834
     } else {
1834
     } else {
1837
   }
1837
   }
1838
 
1838
 
1839
   static void _lcd_level_bed_homing() {
1839
   static void _lcd_level_bed_homing() {
1840
+    if (lcdDrawUpdate) lcd_implementation_drawedit(PSTR("XYZ"), "Homing");
1840
     if (axis_known_position[X_AXIS] &&
1841
     if (axis_known_position[X_AXIS] &&
1841
         axis_known_position[Y_AXIS] &&
1842
         axis_known_position[Y_AXIS] &&
1842
         axis_known_position[Z_AXIS]) {
1843
         axis_known_position[Z_AXIS]) {
1848
       _lcd_level_bed_position = 0;
1849
       _lcd_level_bed_position = 0;
1849
       lcd_goto_menu(_lcd_level_bed);
1850
       lcd_goto_menu(_lcd_level_bed);
1850
     }
1851
     }
1852
+    lcdDrawUpdate = 2;
1851
   }
1853
   }
1852
 
1854
 
1853
   static void lcd_level_bed() {
1855
   static void lcd_level_bed() {
1856
     axis_known_position[Z_AXIS] = false;
1858
     axis_known_position[Z_AXIS] = false;
1857
     mbl.reset();
1859
     mbl.reset();
1858
     enquecommands_P(PSTR("G28"));
1860
     enquecommands_P(PSTR("G28"));
1861
+    lcdDrawUpdate = 2;
1859
     lcd_goto_menu(_lcd_level_bed_homing);
1862
     lcd_goto_menu(_lcd_level_bed_homing);
1860
   }
1863
   }
1861
 
1864
 

Loading…
Cancel
Save