mirror of
https://github.com/alexhopeoconnor/firmware.git
synced 2026-10-15 07:51:19 +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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user