summaryrefslogtreecommitdiff
path: root/MULTIPSK.c
diff options
context:
space:
mode:
authorg8bpq <john.wiseman@cantab.net>2022-10-03 15:55:07 +0100
committerg8bpq <john.wiseman@cantab.net>2022-10-03 15:55:07 +0100
commit4a4271cb07f8c69d4e064a2ef5ccc6c400b4f957 (patch)
treeeab5d58acc3fadf36f1878caeb776dbea9d2069b /MULTIPSK.c
parent9d98903fccef714f6ff788097a8d66282fc2800d (diff)
6.0.23.2123.22
Diffstat (limited to 'MULTIPSK.c')
-rw-r--r--MULTIPSK.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/MULTIPSK.c b/MULTIPSK.c
index eee3269..2781141 100644
--- a/MULTIPSK.c
+++ b/MULTIPSK.c
@@ -498,6 +498,23 @@ static size_t ExtProc(int fn, int port, PDATAMESSAGE buff)
memset(STREAM->RemoteCall, 0, 10);
ptr = strtok_s(&buff->L2DATA[2], " ,\r", &context);
+
+ if (ptr == 0)
+ {
+ PMSGWITHLEN buffptr = (PMSGWITHLEN)GetBuff();
+
+ if (buffptr)
+ {
+ buffptr->Len = sprintf((UCHAR *)&buffptr->Data[0],
+ "MPSK} Error - Call missing from C command\r", STREAM->MyCall, STREAM->RemoteCall);
+
+ C_Q_ADD(&STREAM->PACTORtoBPQ_Q, buffptr);
+ }
+
+ STREAM->DiscWhenAllSent = 10;
+ return 0;
+ }
+
strcpy(STREAM->RemoteCall, ptr);
len = sprintf(Command,"%cCALLSIGN_TO_CALL_ARQ_FAE %s%c%cSELECTIVE_CALL_ARQ_FAE\x1b",