From 4a4271cb07f8c69d4e064a2ef5ccc6c400b4f957 Mon Sep 17 00:00:00 2001 From: g8bpq Date: Mon, 3 Oct 2022 15:55:07 +0100 Subject: 6.0.23.21 --- MULTIPSK.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'MULTIPSK.c') 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", -- cgit v1.2.3