kopia lustrzana https://github.com/lora-aprs/LoRa_APRS_iGate
Merge pull request #304 from lora-aprs/rx-issue
fix rx issue when using different frequenciespull/307/head^2
commit
39625e5b9b
|
@ -120,7 +120,6 @@ bool RadiolibTask::loop(System &system) {
|
|||
if (transmitFlag) { // transmitted.
|
||||
if (transmissionState == RADIOLIB_ERR_NONE) {
|
||||
system.getLogger().log(logging::LoggerLevel::LOGGER_LEVEL_DEBUG, getName(), "[%s] TX done", timeString().c_str());
|
||||
|
||||
} else {
|
||||
system.getLogger().log(logging::LoggerLevel::LOGGER_LEVEL_ERROR, getName(), "[%s] transmitFlag failed, code %d", timeString().c_str(), transmissionState);
|
||||
}
|
||||
|
@ -130,6 +129,8 @@ bool RadiolibTask::loop(System &system) {
|
|||
txWaitTimer.setTimeout(preambleDurationMilliSec * 2);
|
||||
txWaitTimer.start();
|
||||
|
||||
rxEnable = true; // set correct RX frequency again with startRX function
|
||||
|
||||
} else { // received.
|
||||
String str;
|
||||
int state = radio->readData(str);
|
||||
|
|
Ładowanie…
Reference in New Issue