[LR11x0] Fix CAD IRQ setting (#1240)

This commit is contained in:
GUVWAF 2024-09-27 20:30:42 +02:00 committed by GitHub
parent 83e05701fe
commit 98ad30eb10
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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