diff options
| author | Dave Hibberd <d@vehibberd.com> | 2023-10-31 22:51:33 +0000 |
|---|---|---|
| committer | Dave Hibberd <d@vehibberd.com> | 2023-10-31 22:51:33 +0000 |
| commit | b6abe3fc9ec948571cf6935e46ae6431de1a606e (patch) | |
| tree | 63023f6403ce80a42404150dd9efb2ae474fbae5 /APRSCode.c | |
| parent | 18fff38b7b8a7e8a53ff78c862a1c622a236f675 (diff) | |
| parent | fda3d6ffaced810d4c98cf05dc2e29e934ed6eea (diff) | |
Merge branch 'debian/latest' into debian/bookworm
Diffstat (limited to 'APRSCode.c')
| -rw-r--r-- | APRSCode.c | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -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);
}
}
|
