🧑‍💻 Single endstop state

This commit is contained in:
Scott Lahteine
2025-11-26 21:34:09 -06:00
parent 5bbf953711
commit 1832500eca
2 changed files with 6 additions and 1 deletions

View File

@@ -221,6 +221,11 @@ class Endstops {
;
}
/**
* Get a particular endstop state
*/
FORCE_INLINE static bool state(const EndstopEnum es) { return TEST(state(), es); }
static bool probe_switch_activated() {
return (true
#if ENABLED(PROBE_ACTIVATION_SWITCH)

View File

@@ -2574,7 +2574,7 @@ void prepare_line_to_destination() {
}
#endif
if (TEST(endstops.state(), es)) {
if (endstops.state(es)) {
SERIAL_ECHO_MSG("Bad ", C(AXIS_CHAR(axis)), " Endstop?");
kill(GET_TEXT_F(MSG_KILL_HOMING_FAILED));
}