From b4f5f203a748b594881db5d1607027b900b66709 Mon Sep 17 00:00:00 2001 From: Peter Buchegger Date: Mon, 5 Jun 2023 07:43:01 +0200 Subject: [PATCH] fix rx issue when using different frequencies --- src/TaskRadiolib.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/TaskRadiolib.cpp b/src/TaskRadiolib.cpp index cc28f56..9627039 100644 --- a/src/TaskRadiolib.cpp +++ b/src/TaskRadiolib.cpp @@ -120,7 +120,6 @@ bool RadiolibTask::loop(System &system) { if (transmitFlag) { // transmitted. if (transmissionState == RADIOLIB_ERR_NONE) { system.getLogger().log(logging::LoggerLevel::LOGGER_LEVEL_DEBUG, getName(), "[%s] TX done", timeString().c_str()); - } else { system.getLogger().log(logging::LoggerLevel::LOGGER_LEVEL_ERROR, getName(), "[%s] transmitFlag failed, code %d", timeString().c_str(), transmissionState); } @@ -130,6 +129,8 @@ bool RadiolibTask::loop(System &system) { txWaitTimer.setTimeout(preambleDurationMilliSec * 2); txWaitTimer.start(); + rxEnable = true; // set correct RX frequency again with startRX function + } else { // received. String str; int state = radio->readData(str);