diff options
| author | John Wiseman <john.wiseman@cantab.net> | 2023-01-06 10:06:45 +0000 |
|---|---|---|
| committer | John Wiseman <john.wiseman@cantab.net> | 2023-01-06 10:06:45 +0000 |
| commit | 9a44d00480888cb11c614034489cc048d798f40f (patch) | |
| tree | 5164d990b27973e1e0628796424e23e93234ac77 /APRSCode.c | |
| parent | 90bdcbe130dbbc9985a7a8477628a4e3532e45f0 (diff) | |
6.0.23.3623.42
Diffstat (limited to 'APRSCode.c')
| -rw-r--r-- | APRSCode.c | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -2038,6 +2038,12 @@ static int APRSProcessLine(char * buf) return TRUE;
}
+ if (_stricmp(ptr, "SaveAPRSMsgs") == 0)
+ {
+ SaveAPRSMsgs = TRUE;
+ return TRUE;
+ }
+
p_value = strtok(NULL, " \t\n\r");
if (p_value == NULL)
@@ -4640,6 +4646,20 @@ Dll struct STATIONRECORD * APIENTRY APPLFindStation(char * Call, BOOL AddIfNotF Dll struct APRSMESSAGE * APIENTRY APRSGetMessageBuffer()
{
struct APRSMESSAGE * ptr = MessageRecordPool;
+
+ if (ptr == NULL)
+ {
+ // try getting oldest
+
+ ptr = SMEM->Messages;
+
+ if (ptr)
+ {
+ SMEM->Messages = ptr->Next;
+ memset(ptr, 0, sizeof(struct APRSMESSAGE));
+ }
+ return ptr;
+ }
if (ptr)
{
|
