summaryrefslogtreecommitdiff
path: root/APRSCode.c
diff options
context:
space:
mode:
authorDave Hibberd <d@vehibberd.com>2023-10-31 22:42:23 +0000
committerDave Hibberd <d@vehibberd.com>2023-10-31 22:42:23 +0000
commit120df97dc7f30ce81623cc952ba2bd21b86f2425 (patch)
tree72bf9b36dac0e78065c082be335dbf357780fb65 /APRSCode.c
parent7b2a99c53b210949fb2e993e65b6be66a9cbf7a1 (diff)
New upstream version 6.0.24.16upstream/6.0.24.16
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);
}
}