Add probe_switch_activated

This commit is contained in:
Scott Lahteine
2020-12-27 16:21:01 -06:00
parent d00c89946d
commit f423edd938
4 changed files with 13 additions and 8 deletions

View File

@ -116,6 +116,14 @@ class Endstops {
;
}
static inline bool probe_switch_activated() {
return (true
#if ENABLED(PROBE_ACTIVATION_SWITCH)
&& READ(PROBE_ACTIVATION_SWITCH_PIN) == PROBE_ACTIVATION_SWITCH_STATE
#endif
);
}
/**
* Report endstop hits to serial. Called from loop().
*/