Skip to content

Commit a45dae9

Browse files
authored
Merge pull request #3000 from oltaco/rx-irq-timeout
fix: clear the correct IRQ flag for timeout on preamble detected on SX1262
2 parents c1ee9ca + ab5c45f commit a45dae9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/helpers/radiolib/CustomSX1262.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ class CustomSX1262 : public SX1262 {
125125
if (preamble) {
126126
if (_activityAt == 0) _activityAt = now;
127127
if (now - _activityAt > _preambleMillis) {
128-
clearIrqStatus(RADIOLIB_IRQ_PREAMBLE_DETECTED);
128+
clearIrqFlags(RADIOLIB_SX126X_IRQ_PREAMBLE_DETECTED);
129129
_activityAt = 0;
130130
MESH_DEBUG_PRINTLN("Clearing preamble IRQ after %ums", _preambleMillis);
131131

0 commit comments

Comments
 (0)