forked from Mirrors/Marlin
🧑💻 Single endstop state
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user