add/install probe_errors_enabled in mc_probe_cycle
This commit is contained in:
4
probe.c
4
probe.c
@ -46,6 +46,10 @@ uint8_t probe_get_state(uint8_t mode) {
|
||||
return mode ^ ((PROBE_PIN & PROBE_MASK) ^ probe_invert_mask);
|
||||
}
|
||||
|
||||
uint8_t probe_errors_enabled(uint8_t mode) {
|
||||
return !(mode & PROBE_NO_ERROR);
|
||||
}
|
||||
|
||||
// Monitors probe pin state and records the system position when detected. Called by the
|
||||
// stepper ISR per ISR tick.
|
||||
// NOTE: This function must be extremely efficient as to not bog down the stepper ISR.
|
||||
|
Reference in New Issue
Block a user