Merge pull request #291 from lora-aprs/peterus-patch-1

Fix access to queue
This commit is contained in:
Peter Buchegger 2023-04-22 22:41:21 +00:00 committed by GitHub
commit 82a2666241
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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