summaryrefslogtreecommitdiff
path: root/APRSCode.c
diff options
context:
space:
mode:
authorDave Hibberd <d@vehibberd.com>2023-10-31 22:42:30 +0000
committerDave Hibberd <d@vehibberd.com>2023-10-31 22:42:30 +0000
commit78e830ab37d3b11042aa6dc8b8de48a62d42ced6 (patch)
tree47dc812a71482240a03ca77b8e972a7b3b410636 /APRSCode.c
parent9155d3ba6435dccbe31f6f2d90bb8a53578ecaa3 (diff)
parent120df97dc7f30ce81623cc952ba2bd21b86f2425 (diff)
Update upstream source from tag 'upstream/6.0.24.16'
Update to upstream version '6.0.24.16' with Debian dir 638c20d26e7217d9705e33a1ba9d7df28655941b
Diffstat (limited to 'APRSCode.c')
-rw-r--r--APRSCode.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/APRSCode.c b/APRSCode.c
index 70327d5..fea004a 100644
--- a/APRSCode.c
+++ b/APRSCode.c
@@ -2552,6 +2552,8 @@ VOID SendAPRSMessageEx(char * Message, int toPort, char * FromCall, int Gated)
else
continue;
+ Msg.DEST[6] |= 0x80; // set Command Bit
+
ConvToAX25(FromCall, Msg.ORIGIN);
Msg.PID = 0xf0;
Msg.CTL = 3;
@@ -2580,6 +2582,8 @@ VOID SendAPRSMessageEx(char * Message, int toPort, char * FromCall, int Gated)
else
return;
+ Msg.DEST[6] |= 0x80; // set Command Bit
+
ConvToAX25(FromCall, Msg.ORIGIN);
Msg.PID = 0xf0;
Msg.CTL = 3;
@@ -2756,7 +2760,8 @@ void SendBeaconThread(void * Param)
Debugprintf("Sending APRS Beacon to port %d", toPort);
memcpy(Msg.DEST, &BeaconHeader[toPort][0][0], 10 * 7); // Clear unused digis
-
+ Msg.DEST[6] |= 0x80; // set Command Bit
+
GetSemaphore(&Semaphore, 12);
Send_AX_Datagram(&Msg, Len + 2, toPort);
FreeSemaphore(&Semaphore);
@@ -2780,6 +2785,8 @@ void SendBeaconThread(void * Param)
Msg.CTL = 3;
memcpy(Msg.DEST, &BeaconHeader[Port][0][0], 10 * 7);
+ Msg.DEST[6] |= 0x80; // set Command Bit
+
GetSemaphore(&Semaphore, 12);
Send_AX_Datagram(&Msg, Len + 2, Port);
FreeSemaphore(&Semaphore);
@@ -2815,6 +2822,8 @@ VOID SendObject(struct OBJECT * Object)
Msg.CTL = 3;
Len = sprintf(Msg.L2DATA, "%s", Object->Message);
memcpy(Msg.DEST, &Object->Path[0][0], Object->PathLen + 1);
+ Msg.DEST[6] |= 0x80; // set Command Bit
+
Send_AX_Datagram(&Msg, Len + 2, Port);
}
}
@@ -2881,6 +2890,8 @@ VOID SendIStatus()
if (BeaconHddrLen[Port]) // Only send to ports with a DEST defined
{
memcpy(Msg.DEST, &BeaconHeader[Port][0][0], 10 * 7);
+ Msg.DEST[6] |= 0x80; // set Command Bit
+
Send_AX_Datagram(&Msg, Len + 2, Port);
}
}