Skip to content

Commit ab5c45f

Browse files
committed
fix: clear the correct IRQ flag for timeout on preamble detected
1 parent c1ee9ca commit ab5c45f

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)