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
@@ -47,12 +47,12 @@ template <class T> class SX126xInterface : public RadioLibInterface
/**
* Glue functions called from ISR land
*/
virtual void disableInterrupt() override;
virtual void clearRadioIsr() override;
/**
* Enable a particular ISR callback glue function
*/
virtual void enableInterrupt(void (*callback)()) override;
virtual void setRadioIsr(void (*callback)()) override;
#ifdef LORA_DIO1_SOFTWARE_POLL
void handleSoftwareLoraIrqPoll() override;