[realtek-ambz] Temporarily workaround CHANGE interrupts not supported (#282)

* fix change interruptsnot supported on rtl8710b

* Update cores/realtek-amb/arduino/src/wiring_irq.c

---------

Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>
This commit is contained in:
Jaco Malan
2024-05-31 14:59:46 +02:00
committed by GitHub
parent 21a194f43d
commit fa2064b957

View File

@@ -61,6 +61,9 @@ void attachInterruptParam(pin_size_t interruptNumber, voidFuncPtrParam callback,
case CHANGE:
#if LT_RTL8720C
event = IRQ_FALL_RISE;
// Prevents Change interrupt errors on RTL8710B chips.
#elif LT_RTL8710B
event = IRQ_RISE;
#else
LT_W("CHANGE interrupts not supported");
#endif