UBL Manual Build Menu Option (#6972)

One click option to manually build UBL mesh.
This commit is contained in:
Tannoo 2017-06-06 21:14:18 -06:00 committed by Roxy-3D
parent 0dd0033b33
commit 2c2b991b59
2 changed files with 5 additions and 0 deletions

View file

@ -170,6 +170,9 @@
#ifndef MSG_UBL_LEVEL_BED
#define MSG_UBL_LEVEL_BED _UxGT("Unified Bed Leveling")
#endif
#ifndef MSG_UBL_MANUAL_MESH
#define MSG_UBL_MANUAL_MESH _UxGT("Manually Build Mesh")
#endif
#ifndef MSG_UBL_ACTIVATE_MESH
#define MSG_UBL_ACTIVATE_MESH _UxGT("Activate UBL")
#endif

View file

@ -2080,6 +2080,7 @@ void kill_screen(const char* lcd_msg) {
*
* Prepare
* - Unified Bed Leveling
* - Manually Build Mesh
* - Activate UBL
* - Deactivate UBL
* - Mesh Storage
@ -2134,6 +2135,7 @@ void kill_screen(const char* lcd_msg) {
void _lcd_ubl_level_bed() {
START_MENU();
MENU_BACK(MSG_PREPARE);
MENU_ITEM(gcode, MSG_UBL_MANUAL_MESH, PSTR("G29 I999\nG29 P2 B T0"));
MENU_ITEM(gcode, MSG_UBL_ACTIVATE_MESH, PSTR("G29 A"));
MENU_ITEM(gcode, MSG_UBL_DEACTIVATE_MESH, PSTR("G29 D"));
MENU_ITEM(submenu, MSG_UBL_STORAGE_MESH_MENU, _lcd_ubl_storage_mesh);