From 98ad30eb103d22bb7e75f3cc900597403b0cfb1f Mon Sep 17 00:00:00 2001 From: GUVWAF <78759985+GUVWAF@users.noreply.github.com> Date: Fri, 27 Sep 2024 20:30:42 +0200 Subject: [PATCH] [LR11x0] Fix CAD IRQ setting (#1240) --- src/modules/LR11x0/LR11x0.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/LR11x0/LR11x0.cpp b/src/modules/LR11x0/LR11x0.cpp index 2d78249f..8a879591 100644 --- a/src/modules/LR11x0/LR11x0.cpp +++ b/src/modules/LR11x0/LR11x0.cpp @@ -589,7 +589,7 @@ int16_t LR11x0::startChannelScan(const ChannelScanConfig_t &config) { // set DIO pin mapping uint16_t irqFlags = (config.cad.irqFlags == RADIOLIB_IRQ_NOT_SUPPORTED) ? RADIOLIB_LR11X0_IRQ_CAD_DETECTED | RADIOLIB_LR11X0_IRQ_CAD_DONE : config.cad.irqFlags; - state = setDioIrqParams(irqFlags, irqFlags); + state = setDioIrqParams(getIrqMapped(irqFlags), getIrqMapped(irqFlags)); RADIOLIB_ASSERT(state); // clear interrupt flags