From 2dec74f4c2975225396370367781fd8059883282 Mon Sep 17 00:00:00 2001 From: Peter Buchegger Date: Sun, 23 Apr 2023 00:33:42 +0200 Subject: [PATCH] Update TaskRadiolib.cpp --- src/TaskRadiolib.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/TaskRadiolib.cpp b/src/TaskRadiolib.cpp index 7ddf9fc..d6ef62a 100644 --- a/src/TaskRadiolib.cpp +++ b/src/TaskRadiolib.cpp @@ -164,7 +164,7 @@ bool RadiolibTask::loop(System &system) { } else { if (!txEnable) { // system.getLogger().log(logging::LoggerLevel::LOGGER_LEVEL_DEBUG, getName(), "[%s] TX is not enabled", timeString().c_str()); - _toModem.getElement(); // empty list, otherwise memory will get full. + } else { if (transmitFlag) { // system.getLogger().log(logging::LoggerLevel::LOGGER_LEVEL_DEBUG, getName(), "[%s] TX signal detected. Waiting TX", timeString().c_str()); @@ -183,6 +183,8 @@ bool RadiolibTask::loop(System &system) { return true; } } + } else { + _toModem.getElement(); // empty list, otherwise memory will get full. } } }