mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-27 13:56:24 +00:00
Hide mesh editing until a valid mesh exists
This commit is contained in:
parent
f34f09c821
commit
93d5b945dd
@ -206,7 +206,7 @@
|
||||
sync_plan_position();
|
||||
}
|
||||
|
||||
void menu_mbl_edit_mesh() {
|
||||
void menu_edit_mesh() {
|
||||
static uint8_t xind, yind; // =0
|
||||
START_MENU();
|
||||
MENU_BACK(MSG_BED_LEVELING);
|
||||
@ -253,7 +253,8 @@ void menu_bed_leveling() {
|
||||
#endif
|
||||
|
||||
#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
|
||||
|
||||
// Homed and leveling is valid? Then leveling can be toggled.
|
||||
|
Loading…
Reference in New Issue
Block a user