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 (transmitFlag) { // transmitted.
|
||||||
if (transmissionState == RADIOLIB_ERR_NONE) {
|
if (transmissionState == RADIOLIB_ERR_NONE) {
|
||||||
system.getLogger().log(logging::LoggerLevel::LOGGER_LEVEL_DEBUG, getName(), "[%s] TX done", timeString().c_str());
|
system.getLogger().log(logging::LoggerLevel::LOGGER_LEVEL_DEBUG, getName(), "[%s] TX done", timeString().c_str());
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
system.getLogger().log(logging::LoggerLevel::LOGGER_LEVEL_ERROR, getName(), "[%s] transmitFlag failed, code %d", timeString().c_str(), transmissionState);
|
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.setTimeout(preambleDurationMilliSec * 2);
|
||||||
txWaitTimer.start();
|
txWaitTimer.start();
|
||||||
|
|
||||||
|
rxEnable = true; // set correct RX frequency again with startRX function
|
||||||
|
|
||||||
} else { // received.
|
} else { // received.
|
||||||
String str;
|
String str;
|
||||||
int state = radio->readData(str);
|
int state = radio->readData(str);
|
||||||
|
|
Ładowanie…
Reference in New Issue