mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-09-29 06:06:38 +00:00
Merge pull request #3000 from oltaco/rx-irq-timeout
fix: clear the correct IRQ flag for timeout on preamble detected on SX1262
This commit is contained in:
@@ -125,7 +125,7 @@ class CustomSX1262 : public SX1262 {
|
|||||||
if (preamble) {
|
if (preamble) {
|
||||||
if (_activityAt == 0) _activityAt = now;
|
if (_activityAt == 0) _activityAt = now;
|
||||||
if (now - _activityAt > _preambleMillis) {
|
if (now - _activityAt > _preambleMillis) {
|
||||||
clearIrqStatus(RADIOLIB_IRQ_PREAMBLE_DETECTED);
|
clearIrqFlags(RADIOLIB_SX126X_IRQ_PREAMBLE_DETECTED);
|
||||||
_activityAt = 0;
|
_activityAt = 0;
|
||||||
MESH_DEBUG_PRINTLN("Clearing preamble IRQ after %ums", _preambleMillis);
|
MESH_DEBUG_PRINTLN("Clearing preamble IRQ after %ums", _preambleMillis);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user