fix(lora): skip DIO detach when no ISR is attached (#11386)

* fix(lora): skip DIO detach when no ISR is attached

Fixes #11371

* fix(lora): latch the ISR-armed flag instead of tracking attach state

The flag is now written once from task context and only read from ISR context.
This commit is contained in:
Thomas Göttgens
2026-08-10 12:39:25 +00:00
committed by GitHub
parent 512154ff97
commit 80d16234e5
11 changed files with 38 additions and 18 deletions
+2 -2
View File
@@ -250,7 +250,7 @@ template <typename T> int16_t SX126xInterface<T>::getCurrentRSSI()
return (int16_t)round(rssi);
}
template <typename T> void SX126xInterface<T>::enableInterrupt(void (*callback)())
template <typename T> void SX126xInterface<T>::setRadioIsr(void (*callback)())
{
#ifdef LORA_DIO1_SOFTWARE_POLL
irqPollingActive = true;
@@ -261,7 +261,7 @@ template <typename T> void SX126xInterface<T>::enableInterrupt(void (*callback)(
#endif
}
template <typename T> void SX126xInterface<T>::disableInterrupt()
template <typename T> void SX126xInterface<T>::clearRadioIsr()
{
#ifdef LORA_DIO1_SOFTWARE_POLL
irqPollingActive = false;