[2.0.x] Add optional menu item to toggle software endstops (#10389)
This commit is contained in:
committed by
Scott Lahteine
parent
3c5c6d478a
commit
6c535081ec
@ -55,6 +55,9 @@
|
||||
#ifndef MSG_LCD_ENDSTOPS
|
||||
#define MSG_LCD_ENDSTOPS _UxGT("Endstops") // Max length 8 characters
|
||||
#endif
|
||||
#ifndef MSG_LCD_SOFT_ENDSTOPS
|
||||
#define MSG_LCD_SOFT_ENDSTOPS _UxGT("Soft Endstops")
|
||||
#endif
|
||||
#ifndef MSG_MAIN
|
||||
#define MSG_MAIN _UxGT("Main")
|
||||
#endif
|
||||
|
@ -3115,6 +3115,10 @@ void kill_screen(const char* lcd_msg) {
|
||||
START_MENU();
|
||||
MENU_BACK(MSG_PREPARE);
|
||||
|
||||
#if HAS_SOFTWARE_ENDSTOPS && ENABLED(SOFT_ENDSTOPS_MENU_ITEM)
|
||||
MENU_ITEM_EDIT(bool, MSG_LCD_SOFT_ENDSTOPS, &soft_endstops_enabled);
|
||||
#endif
|
||||
|
||||
if (_MOVE_XYZ_ALLOWED) {
|
||||
if (_MOVE_XY_ALLOWED) {
|
||||
MENU_ITEM(submenu, MSG_MOVE_X, lcd_move_get_x_amount);
|
||||
|
Reference in New Issue
Block a user