Update TaskRadiolib.cpp

This commit is contained in:
Peter Buchegger 2023-04-23 00:33:42 +02:00 committed by GitHub
parent fe0fad98bc
commit 2dec74f4c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -164,7 +164,7 @@ bool RadiolibTask::loop(System &system) {
} else { } else {
if (!txEnable) { if (!txEnable) {
// system.getLogger().log(logging::LoggerLevel::LOGGER_LEVEL_DEBUG, getName(), "[%s] TX is not enabled", timeString().c_str()); // 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 { } else {
if (transmitFlag) { if (transmitFlag) {
// system.getLogger().log(logging::LoggerLevel::LOGGER_LEVEL_DEBUG, getName(), "[%s] TX signal detected. Waiting TX", timeString().c_str()); // 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; return true;
} }
} }
} else {
_toModem.getElement(); // empty list, otherwise memory will get full.
} }
} }
} }