diff --git a/uCNC/src/core/motion_control.c b/uCNC/src/core/motion_control.c index 113485be8..431826f74 100644 --- a/uCNC/src/core/motion_control.c +++ b/uCNC/src/core/motion_control.c @@ -664,7 +664,7 @@ uint8_t mc_probe(float *target, uint8_t flags, motion_data_t *block_data) return STATUS_CRITICAL_FAIL; } -#if (defined(FORCE_SOFT_POLLING) || (PROBEEN_MASK != PROBEISR_MASK)) +#if (defined(FORCE_SOFT_POLLING) || !defined(PROBE_ISR)) if (io_get_probe() ^ (flags & 0x01)) { mcu_probe_changed_cb(); diff --git a/uCNC/src/hal/mcus/stm32f1x/mcu_stm32f1x.c b/uCNC/src/hal/mcus/stm32f1x/mcu_stm32f1x.c index 9376e7a56..5095871e8 100644 --- a/uCNC/src/hal/mcus/stm32f1x/mcu_stm32f1x.c +++ b/uCNC/src/hal/mcus/stm32f1x/mcu_stm32f1x.c @@ -216,7 +216,7 @@ static void mcu_input_isr(void) mcu_controls_changed_cb(); } #endif -#if (PROBE_EXTIBITMASK & 0x01) +#if (PROBE_EXTIBITMASK != 0) if (EXTI->PR & PROBE_EXTIBITMASK) { mcu_probe_changed_cb(); diff --git a/uCNC/src/hal/mcus/stm32f4x/mcu_stm32f4x.c b/uCNC/src/hal/mcus/stm32f4x/mcu_stm32f4x.c index f4f82d9c3..90fb1825e 100644 --- a/uCNC/src/hal/mcus/stm32f4x/mcu_stm32f4x.c +++ b/uCNC/src/hal/mcus/stm32f4x/mcu_stm32f4x.c @@ -198,7 +198,7 @@ static void mcu_input_isr(void) mcu_controls_changed_cb(); } #endif -#if (PROBE_EXTIBITMASK & 0x01) +#if (PROBE_EXTIBITMASK != 0) if (EXTI->PR & PROBE_EXTIBITMASK) { mcu_probe_changed_cb();