Increased preamble to 32 for <sf9 and left at 16 for sf9 and above

This commit is contained in:
overkillfpv committed 2026-03-05 21:39:14 +11:00
1 parent afbd45b26e
commit 19dd4121a1
2 files changed
+2 -1

No files matched your search

@@ -26,6 +26,7 @@ void setFlag(void) {
void RadioLibWrapper::begin() {
_radio->setPacketReceivedAction(setFlag); // this is also SentComplete interrupt
_radio->setPreambleLength(LORA_SF <= 8 ? 32 : 16); // longer preamble for lower SF improves reliability
state = STATE_IDLE;
if (_board->getStartupReason() == BD_STARTUP_RX_PACKET) { // received a LoRa packet (while in deep sleep)