From f0d9fdda118ddaee70b7a6a5249f60c023a7953f Mon Sep 17 00:00:00 2001 From: jgromes Date: Sun, 27 Oct 2019 17:12:59 +0100 Subject: [PATCH] [SX127x] Added missing standby command --- src/modules/SX127x.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modules/SX127x.cpp b/src/modules/SX127x.cpp index c0739db9..72fa605a 100644 --- a/src/modules/SX127x.cpp +++ b/src/modules/SX127x.cpp @@ -467,6 +467,9 @@ int16_t SX127x::readData(uint8_t* data, size_t len) { int16_t modem = getActiveModem(); size_t length = len; + // put module to standby + standby(); + if(modem == SX127X_LORA) { // len set to maximum indicates unknown packet length, read the number of actually received bytes if(len == SX127X_MAX_PACKET_LENGTH) {