fix: clear the correct IRQ flag for timeout on preamble detected

This commit is contained in:
taco
2026-07-20 21:05:12 +10:00
parent c1ee9cad5b
commit ab5c45f516
+1 -1
View File
@@ -125,7 +125,7 @@ class CustomSX1262 : public SX1262 {
if (preamble) {
if (_activityAt == 0) _activityAt = now;
if (now - _activityAt > _preambleMillis) {
clearIrqStatus(RADIOLIB_IRQ_PREAMBLE_DETECTED);
clearIrqFlags(RADIOLIB_SX126X_IRQ_PREAMBLE_DETECTED);
_activityAt = 0;
MESH_DEBUG_PRINTLN("Clearing preamble IRQ after %ums", _preambleMillis);