Skip to content
Snippets Groups Projects
Commit 93d5b945 authored by Scott Lahteine's avatar Scott Lahteine
Browse files

Hide mesh editing until a valid mesh exists

parent f34f09c8
Branches
Tags
No related merge requests found
...@@ -206,7 +206,7 @@ ...@@ -206,7 +206,7 @@
sync_plan_position(); sync_plan_position();
} }
void menu_mbl_edit_mesh() { void menu_edit_mesh() {
static uint8_t xind, yind; // =0 static uint8_t xind, yind; // =0
START_MENU(); START_MENU();
MENU_BACK(MSG_BED_LEVELING); MENU_BACK(MSG_BED_LEVELING);
...@@ -253,7 +253,8 @@ void menu_bed_leveling() { ...@@ -253,7 +253,8 @@ void menu_bed_leveling() {
#endif #endif
#if ENABLED(MESH_EDIT_MENU) #if ENABLED(MESH_EDIT_MENU)
MENU_ITEM(submenu, MSG_EDIT_MESH, menu_mbl_edit_mesh); if (leveling_is_valid())
MENU_ITEM(submenu, MSG_EDIT_MESH, menu_edit_mesh);
#endif #endif
// Homed and leveling is valid? Then leveling can be toggled. // Homed and leveling is valid? Then leveling can be toggled.
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment