From f3ba8cf86af71bd97bdfb9dbbd877312e05a7823 Mon Sep 17 00:00:00 2001 From: jgromes Date: Wed, 2 Oct 2019 18:58:46 +0200 Subject: [PATCH] [SX126x] Fixed missing standby in blocking receive --- src/modules/SX126x.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/modules/SX126x.cpp b/src/modules/SX126x.cpp index 16b04a1d..829d8e66 100644 --- a/src/modules/SX126x.cpp +++ b/src/modules/SX126x.cpp @@ -256,6 +256,12 @@ int16_t SX126x::receive(uint8_t* data, size_t len) { } } + // put radio to standby + state = standby(); + if(state != ERR_NONE) { + return(state); + } + // read the received data return(readData(data, len)); }