mirror of
https://github.com/alexhopeoconnor/firmware.git
synced 2026-10-22 11:17:49 +10:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user