mirror of
https://github.com/lora-aprs/LoRa_APRS_iGate.git
synced 2025-12-06 07:42:00 +01:00
Merge pull request #291 from lora-aprs/peterus-patch-1
Fix access to queue
This commit is contained in:
commit
82a2666241
|
|
@ -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.
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue