summaryrefslogtreecommitdiff
path: root/SCSPactor.c
diff options
context:
space:
mode:
Diffstat (limited to 'SCSPactor.c')
-rw-r--r--SCSPactor.c14
1 files changed, 8 insertions, 6 deletions
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];