pull/303/head
Peter Buchegger 2023-06-04 17:17:50 +02:00
rodzic f1f42038e7
commit e5a99a88cc
1 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -164,6 +164,9 @@ 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());
if (!_toModem.empty()) {
_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());
@ -182,8 +185,6 @@ bool RadiolibTask::loop(System &system) {
return true;
}
}
} else {
_toModem.getElement(); // empty list, otherwise memory will get full.
}
}
}