mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-08-12 03:43:09 +02:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ffcfc42b8a | |||
| f3e0830473 |
@@ -48,7 +48,7 @@ ___________________________________________________________________*/
|
|||||||
#include "A7670_utils.h"
|
#include "A7670_utils.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
String versionDate = "2024.12.06";
|
String versionDate = "2024.12.30";
|
||||||
Configuration Config;
|
Configuration Config;
|
||||||
WiFiClient espClient;
|
WiFiClient espClient;
|
||||||
#ifdef HAS_GPS
|
#ifdef HAS_GPS
|
||||||
|
|||||||
+2
-1
@@ -197,7 +197,8 @@ namespace GPS_Utils {
|
|||||||
encodedBytePosition = packet.indexOf(":=") + 14;
|
encodedBytePosition = packet.indexOf(":=") + 14;
|
||||||
}
|
}
|
||||||
if (encodedBytePosition != 0) {
|
if (encodedBytePosition != 0) {
|
||||||
if (String(packet[encodedBytePosition]) == "G" || String(packet[encodedBytePosition]) == "Q" || String(packet[encodedBytePosition]) == "[" || String(packet[encodedBytePosition]) == "H") {
|
char currentChar = packet[encodedBytePosition];
|
||||||
|
if (currentChar == 'G' || currentChar == 'Q' || currentChar == '[' || currentChar == 'H' || currentChar == 'X') {
|
||||||
return decodeEncodedGPS(packet);
|
return decodeEncodedGPS(packet);
|
||||||
} else {
|
} else {
|
||||||
return getReceivedGPS(packet);
|
return getReceivedGPS(packet);
|
||||||
|
|||||||
+1
-1
@@ -186,7 +186,7 @@ namespace Utils {
|
|||||||
|
|
||||||
void checkBeaconInterval() {
|
void checkBeaconInterval() {
|
||||||
uint32_t lastTx = millis() - lastBeaconTx;
|
uint32_t lastTx = millis() - lastBeaconTx;
|
||||||
if (passcodeValid && (lastBeaconTx == 0 || lastTx >= Config.beacon.interval * 60 * 1000)) {
|
if (((Config.aprs_is.active && passcodeValid) || Config.digi.mode != 0) && (lastBeaconTx == 0 || lastTx >= Config.beacon.interval * 60 * 1000)) {
|
||||||
beaconUpdate = true;
|
beaconUpdate = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user