jgromes / RadioLib

Universal wireless communication library for embedded devices
https://jgromes.github.io/RadioLib/
MIT License
1.52k stars 381 forks source link

SX127x: Set FIFO read pointer to the start of the current packet #1184

Closed mycosd closed 1 month ago

mycosd commented 1 month ago

This addresses #1183. It moves the FIFO read pointer to the current packet so it matches the packet length returned from getPacketLength in case there were multiple packets of different lengths received between reads.

jgromes commented 1 month ago

Thank you for the contribution! All looks good, so I merged this.

I also wanted to point out that this only works in LoRa mode, since the registers that are being manipulated are only available in LoRa.