From fa2064b9578e60ec48e0ec524052cb2341608a66 Mon Sep 17 00:00:00 2001 From: Jaco Malan <47391204+Jaco1990@users.noreply.github.com> Date: Fri, 31 May 2024 14:59:46 +0200 Subject: [PATCH] [realtek-ambz] Temporarily workaround CHANGE interrupts not supported (#282) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix change interruptsnot supported on rtl8710b * Update cores/realtek-amb/arduino/src/wiring_irq.c --------- Co-authored-by: Kuba SzczodrzyƄski --- cores/realtek-amb/arduino/src/wiring_irq.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cores/realtek-amb/arduino/src/wiring_irq.c b/cores/realtek-amb/arduino/src/wiring_irq.c index f387fccca..34cfc2dcc 100644 --- a/cores/realtek-amb/arduino/src/wiring_irq.c +++ b/cores/realtek-amb/arduino/src/wiring_irq.c @@ -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