From aa8cf17732f4c7098630c4f802cfecdd3f92e0b7 Mon Sep 17 00:00:00 2001 From: Peter Harper <77111776+peterharperuk@users.noreply.github.com> Date: Fri, 23 Aug 2024 16:58:38 +0100 Subject: [PATCH] Fix assert in gpio_set_irq_enabled (#1864) * Fix assert in gpio_set_irq_enabled --- src/rp2_common/hardware_gpio/gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rp2_common/hardware_gpio/gpio.c b/src/rp2_common/hardware_gpio/gpio.c index b26d0cc95..44c39e9c4 100644 --- a/src/rp2_common/hardware_gpio/gpio.c +++ b/src/rp2_common/hardware_gpio/gpio.c @@ -188,7 +188,7 @@ void gpio_set_irq_enabled(uint gpio, uint32_t events, bool enabled) { // or callback should already be set (raw or using gpio_set_irq_callback) // this protects against enabling the interrupt without callback set assert(!enabled - || (raw_irq_mask[get_core_num()] & (1u<