Skip to content

Commit 94d26ed

Browse files
committed
LoRa-RP2040.cpp: fix packet duplication when using the parsePacket method in a loop.
I found this workaround here: sandeepmistry/arduino-LoRa#463 (comment)
1 parent c8afa7f commit 94d26ed

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/LoRa-RP2040.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ int LoRaClass::parsePacket(int size)
227227

228228
// clear IRQ's
229229
writeRegister(REG_IRQ_FLAGS, irqFlags);
230+
writeRegister(REG_IRQ_FLAGS, irqFlags);
230231

231232
if ((irqFlags & IRQ_RX_DONE_MASK) && (irqFlags & IRQ_PAYLOAD_CRC_ERROR_MASK) == 0) {
232233
// received a packet

0 commit comments

Comments
 (0)