Require homing to toggle leveling (#13652)

This commit is contained in:
Robby Candra authored and Scott Lahteine committed 2019-04-11 14:09:41 -05:00
1 parent 9fd3e64ba8
commit 9e86fc3831
1 file changed
+1 -1
+1 -1
View File
@@ -465,7 +465,7 @@ void menu_motion() {
#if DISABLED(PROBE_MANUALLY)
MENU_ITEM(gcode, MSG_LEVEL_BED, PSTR("G28\nG29"));
#endif
if (leveling_is_valid()) {
if (all_axes_homed() && leveling_is_valid()) {
bool new_level_state = planner.leveling_active;
MENU_ITEM_EDIT_CALLBACK(bool, MSG_BED_LEVELING, &new_level_state, _lcd_toggle_bed_leveling);
}