From b8e40a44c95ea6e9933a130e9465eb98fa650aed Mon Sep 17 00:00:00 2001 From: Dave Hibberd Date: Mon, 12 Feb 2024 23:26:44 +0000 Subject: New upstream version 6.0.24.29 --- SCSPactor.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'SCSPactor.c') diff --git a/SCSPactor.c b/SCSPactor.c index 4ae57be..c5a5ab0 100644 --- a/SCSPactor.c +++ b/SCSPactor.c @@ -3189,14 +3189,16 @@ VOID ProcessDEDFrame(struct TNCINFO * TNC, UCHAR * Msg, int framelen) // If using an FT847 on PTC Port it needa a "Cat On" Command. Send it here - PORT = TNC->RIG->PORT; - - if (PORT->PTC && strcmp(PORT->Rigs[0].RigName, "FT847") == 0) + if (TNC->RIG->PORT && TNC->RIG->PORT->PTC) { - UCHAR CATON[6] = {0,0,0,0,0}; - SendPTCRadioCommand(PORT->PTC, CATON, 5); - } + PORT = TNC->RIG->PORT; + if (strcmp(PORT->Rigs[0].RigName, "FT847") == 0) + { + UCHAR CATON[6] = {0,0,0,0,0}; + SendPTCRadioCommand(PORT->PTC, CATON, 5); + } + } } Stream = RealStream = Msg[2]; -- cgit v1.2.3