mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-07-03 16:31:12 +02:00
cross digi added
This commit is contained in:
+5
-10
@@ -87,7 +87,9 @@ namespace DIGI_Utils {
|
||||
if (path.indexOf("WIDE1-1") != - 1) {
|
||||
return buildPacket(path, packet, thirdParty, false);
|
||||
} else if (path.indexOf("WIDE1-1") == -1 && (abs(Config.loramodule.txFreq - Config.loramodule.rxFreq) >= 125000)) { // CrossFreq Digi
|
||||
//
|
||||
Serial.println("CrossFreqDigi mode 2");
|
||||
//
|
||||
return buildPacket(path, packet, thirdParty, true);
|
||||
} else {
|
||||
return "";
|
||||
@@ -103,7 +105,9 @@ namespace DIGI_Utils {
|
||||
}
|
||||
return "";
|
||||
} else if (path.indexOf("WIDE1-1") == -1 && path.indexOf("WIDE2-") == -1 && (abs(Config.loramodule.txFreq - Config.loramodule.rxFreq) >= 125000)) { // CrossFreq Digi
|
||||
//
|
||||
Serial.println("CrossFreqDigi mode 3");
|
||||
//
|
||||
return buildPacket(path, packet, thirdParty, true);
|
||||
} else {
|
||||
return "";
|
||||
@@ -111,16 +115,7 @@ namespace DIGI_Utils {
|
||||
} else {
|
||||
return "";
|
||||
}
|
||||
|
||||
// sin path "," y !thirdParty
|
||||
} else if (temp.indexOf(",") == -1 && !thirdParty && (Config.digi.mode == 2 || backUpDigiMode || Config.digi.mode == 3) && (abs(Config.loramodule.txFreq - Config.loramodule.rxFreq) >= 125000)) {
|
||||
Serial.println("CrossFreqDigi, sin path , no thirdParty");
|
||||
return buildPacket("", packet, thirdParty, true);
|
||||
|
||||
|
||||
// sin path "," y thirdParty
|
||||
} else if (temp.indexOf(",") == -1 && thirdParty && (Config.digi.mode == 2 || backUpDigiMode || Config.digi.mode == 3) && (abs(Config.loramodule.txFreq - Config.loramodule.rxFreq) >= 125000)) {
|
||||
Serial.println("sin path, thirdparty , 125k");
|
||||
} else if (temp.indexOf(",") == -1 && (Config.digi.mode == 2 || backUpDigiMode || Config.digi.mode == 3) && (abs(Config.loramodule.txFreq - Config.loramodule.rxFreq) >= 125000)) {
|
||||
return buildPacket("", packet, thirdParty, true);
|
||||
} else {
|
||||
return "";
|
||||
|
||||
Reference in New Issue
Block a user