beaconOnRxFreq into beacon config

This commit is contained in:
richonguzman 2025-10-15 10:58:30 -03:00
parent 87a67cd2c9
commit bec4f4f473
8 changed files with 48 additions and 44 deletions

View file

@ -150,7 +150,7 @@ namespace LoRa_Utils {
if (!Config.loramodule.txActive) return;
if (Config.loramodule.txFreq != Config.loramodule.rxFreq) {
if (!packetIsBeacon || (packetIsBeacon && !Config.digi.beaconOnRxFreq)) {
if (!packetIsBeacon || (packetIsBeacon && !Config.beacon.beaconOnRxFreq)) {
changeFreqTx();
}
}
@ -174,7 +174,7 @@ namespace LoRa_Utils {
if (Config.digi.ecoMode != 1) digitalWrite(INTERNAL_LED_PIN, LOW); // disabled in Ultra Eco Mode
#endif
if (Config.loramodule.txFreq != Config.loramodule.rxFreq) {
if (!packetIsBeacon || (packetIsBeacon && !Config.digi.beaconOnRxFreq)) {
if (!packetIsBeacon || (packetIsBeacon && !Config.beacon.beaconOnRxFreq)) {
changeFreqRx();
}
}