From 18ff62890afcf8c0ddd20ab5d039b268d6753c88 Mon Sep 17 00:00:00 2001 From: jgromes Date: Wed, 18 Jan 2023 22:00:26 +0100 Subject: [PATCH] [SX127x] Fixed packet length not proagating correctly (#666) --- src/modules/SX127x/SX127x.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/SX127x/SX127x.cpp b/src/modules/SX127x/SX127x.cpp index 5052cc69..c5d857fc 100644 --- a/src/modules/SX127x/SX127x.cpp +++ b/src/modules/SX127x/SX127x.cpp @@ -381,6 +381,7 @@ int16_t SX127x::startReceive(uint8_t len, uint8_t mode) { // set expected packet length for SF6 if(_sf == 6) { state |= _mod->SPIsetRegValue(RADIOLIB_SX127X_REG_PAYLOAD_LENGTH, len); + _packetLength = len; } // apply fixes to errata