BLTouch V3.0 support (#13406)
This commit is contained in:
committed by
Scott Lahteine
parent
49cf92dc36
commit
691e5c3bb8
@ -867,6 +867,15 @@
|
||||
#ifndef MSG_BLTOUCH_DEPLOY
|
||||
#define MSG_BLTOUCH_DEPLOY _UxGT("Deploy BLTouch")
|
||||
#endif
|
||||
#ifndef MSG_BLTOUCH_SW_MODE
|
||||
#define MSG_BLTOUCH_SW_MODE _UxGT("SW Deploy BLTouch")
|
||||
#endif
|
||||
#ifndef MSG_BLTOUCH_5V_MODE
|
||||
#define MSG_BLTOUCH_5V_MODE _UxGT("BLTouch 5V Mode")
|
||||
#endif
|
||||
#ifndef MSG_BLTOUCH_OD_MODE
|
||||
#define MSG_BLTOUCH_OD_MODE _UxGT("BLTouch OD Mode")
|
||||
#endif
|
||||
#ifndef MSG_BLTOUCH_STOW
|
||||
#define MSG_BLTOUCH_STOW _UxGT("Stow BLTouch")
|
||||
#endif
|
||||
|
@ -296,11 +296,11 @@ class MenuItem_bool {
|
||||
++_thisItemNr; \
|
||||
} while(0)
|
||||
|
||||
#define MENU_ITEM_ADDON_START(X) \
|
||||
#define MENU_ITEM_ADDON_START(X) do{ \
|
||||
if (ui.should_draw() && _menuLineNr == _thisItemNr - 1) { \
|
||||
SETCURSOR(X, _lcdLineNr)
|
||||
|
||||
#define MENU_ITEM_ADDON_END() } (0)
|
||||
#define MENU_ITEM_ADDON_END() } }while(0)
|
||||
|
||||
#define STATIC_ITEM(LABEL, ...) STATIC_ITEM_P(PSTR(LABEL), ## __VA_ARGS__)
|
||||
|
||||
|
@ -37,9 +37,11 @@
|
||||
|
||||
#if HAS_BED_PROBE
|
||||
#include "../../module/probe.h"
|
||||
#if ENABLED(BLTOUCH)
|
||||
#include "../../module/endstops.h"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if ENABLED(BLTOUCH)
|
||||
#include "../../module/endstops.h"
|
||||
#include "../../feature/bltouch.h"
|
||||
#endif
|
||||
|
||||
#if ENABLED(PIDTEMP)
|
||||
@ -694,7 +696,7 @@ void menu_advanced_settings() {
|
||||
//
|
||||
#if ENABLED(BLTOUCH)
|
||||
MENU_ITEM(gcode, MSG_BLTOUCH_SELFTEST, PSTR("M280 P" STRINGIFY(Z_PROBE_SERVO_NR) " S" STRINGIFY(BLTOUCH_SELFTEST)));
|
||||
if (!endstops.z_probe_enabled && TEST_BLTOUCH())
|
||||
if (!endstops.z_probe_enabled && bltouch.triggered())
|
||||
MENU_ITEM(gcode, MSG_BLTOUCH_RESET, PSTR("M280 P" STRINGIFY(Z_PROBE_SERVO_NR) " S" STRINGIFY(BLTOUCH_RESET)));
|
||||
#endif
|
||||
|
||||
|
@ -161,6 +161,11 @@ static void lcd_factory_settings() {
|
||||
MENU_ITEM(gcode, MSG_BLTOUCH_SELFTEST, PSTR("M280 P" STRINGIFY(Z_PROBE_SERVO_NR) " S" STRINGIFY(BLTOUCH_SELFTEST)));
|
||||
MENU_ITEM(gcode, MSG_BLTOUCH_DEPLOY, PSTR("M280 P" STRINGIFY(Z_PROBE_SERVO_NR) " S" STRINGIFY(BLTOUCH_DEPLOY)));
|
||||
MENU_ITEM(gcode, MSG_BLTOUCH_STOW, PSTR("M280 P" STRINGIFY(Z_PROBE_SERVO_NR) " S" STRINGIFY(BLTOUCH_STOW)));
|
||||
#if ENABLED(BLTOUCH_V3)
|
||||
MENU_ITEM(gcode, MSG_BLTOUCH_SW_MODE, PSTR("M280 P" STRINGIFY(Z_PROBE_SERVO_NR) " S" STRINGIFY(BLTOUCH_SW_MODE)));
|
||||
MENU_ITEM(gcode, MSG_BLTOUCH_5V_MODE, PSTR("M280 P" STRINGIFY(Z_PROBE_SERVO_NR) " S" STRINGIFY(BLTOUCH_5V_MODE)));
|
||||
MENU_ITEM(gcode, MSG_BLTOUCH_OD_MODE, PSTR("M280 P" STRINGIFY(Z_PROBE_SERVO_NR) " S" STRINGIFY(BLTOUCH_OD_MODE)));
|
||||
#endif
|
||||
END_MENU();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user