cross digi added

This commit is contained in:
richonguzman
2024-10-06 11:36:37 -03:00
parent 1063a82294
commit d6c5741fde
3 changed files with 7 additions and 11 deletions
+5 -10
View File
@@ -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 "";