Skip to content

Commit 65b8ced

Browse files
committed
🧑‍💻 Clarify DEPLOY_ALARM
1 parent 4ea75ad commit 65b8ced

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Marlin/src/feature/bltouch.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
// BLTouch commands are sent as servo angles
2727
typedef unsigned char BLTCommand;
2828

29+
#define DEPLOY_ALARM true
2930
#define STOW_ALARM true
3031
#define BLTOUCH_DEPLOY 10
3132
#define BLTOUCH_STOW 90
@@ -104,7 +105,7 @@ class BLTouch {
104105
static bool triggered();
105106

106107
private:
107-
static bool _deploy_query_alarm() { return command(BLTOUCH_DEPLOY, BLTOUCH_DEPLOY_DELAY); }
108+
static bool _deploy_query_alarm() { return command(BLTOUCH_DEPLOY, BLTOUCH_DEPLOY_DELAY) == DEPLOY_ALARM; }
108109
static bool _stow_query_alarm() { return command(BLTOUCH_STOW, BLTOUCH_STOW_DELAY) == STOW_ALARM; }
109110

110111
static void clear();

0 commit comments

Comments
 (0)