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 #ifndef MSG_UBL_LEVEL_BED
#define MSG_UBL_LEVEL_BED _UxGT("Unified Bed Leveling") #define MSG_UBL_LEVEL_BED _UxGT("Unified Bed Leveling")
#endif #endif
#ifndef MSG_UBL_MANUAL_MESH
#define MSG_UBL_MANUAL_MESH _UxGT("Manually Build Mesh")
#endif
#ifndef MSG_UBL_ACTIVATE_MESH #ifndef MSG_UBL_ACTIVATE_MESH
#define MSG_UBL_ACTIVATE_MESH _UxGT("Activate UBL") #define MSG_UBL_ACTIVATE_MESH _UxGT("Activate UBL")
#endif #endif

View File

@ -2080,6 +2080,7 @@ void kill_screen(const char* lcd_msg) {
* *
* Prepare * Prepare
* - Unified Bed Leveling * - Unified Bed Leveling
* - Manually Build Mesh
* - Activate UBL * - Activate UBL
* - Deactivate UBL * - Deactivate UBL
* - Mesh Storage * - Mesh Storage
@ -2134,6 +2135,7 @@ void kill_screen(const char* lcd_msg) {
void _lcd_ubl_level_bed() { void _lcd_ubl_level_bed() {
START_MENU(); START_MENU();
MENU_BACK(MSG_PREPARE); 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_ACTIVATE_MESH, PSTR("G29 A"));
MENU_ITEM(gcode, MSG_UBL_DEACTIVATE_MESH, PSTR("G29 D")); MENU_ITEM(gcode, MSG_UBL_DEACTIVATE_MESH, PSTR("G29 D"));
MENU_ITEM(submenu, MSG_UBL_STORAGE_MESH_MENU, _lcd_ubl_storage_mesh); MENU_ITEM(submenu, MSG_UBL_STORAGE_MESH_MENU, _lcd_ubl_storage_mesh);