mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-04-12 01:44:25 +00:00
Beacon Freq on Digi Mode
This commit is contained in:
parent
61409ce683
commit
d334164b6f
11 changed files with 68 additions and 23 deletions
|
|
@ -30,6 +30,7 @@
|
|||
|
||||
extern Configuration Config;
|
||||
extern uint32_t lastRxTime;
|
||||
extern bool packetIsBeacon;
|
||||
|
||||
extern std::vector<ReceivedPacket> receivedPackets;
|
||||
|
||||
|
|
@ -143,7 +144,9 @@ namespace LoRa_Utils {
|
|||
if (!Config.loramodule.txActive) return;
|
||||
|
||||
if (Config.loramodule.txFreq != Config.loramodule.rxFreq) {
|
||||
changeFreqTx();
|
||||
if (!packetIsBeacon || (packetIsBeacon && !Config.digi.beaconOnRxFreq)) {
|
||||
changeFreqTx();
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef INTERNAL_LED_PIN
|
||||
|
|
@ -165,7 +168,9 @@ 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) {
|
||||
changeFreqRx();
|
||||
if (!packetIsBeacon || (packetIsBeacon && !Config.digi.beaconOnRxFreq)) {
|
||||
changeFreqRx();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue