diff options
| author | Dave Hibberd <d@vehibberd.com> | 2023-12-08 12:30:40 +0000 |
|---|---|---|
| committer | Dave Hibberd <d@vehibberd.com> | 2023-12-08 12:30:40 +0000 |
| commit | 3c4fd182da16ee23321c35fa7ea3b9fecd13cb4e (patch) | |
| tree | 443342a056f361262478f1a93f8adccaf6d52598 /SCSPactor.c | |
| parent | 63e373575e2d9affd3604bab5a9c524cd81ab0d8 (diff) | |
| parent | 397da35dac26c162055adf2f0d3bc6c4567d1e0c (diff) | |
Merge branch 'debian/latest' into debian/bookworm
Diffstat (limited to 'SCSPactor.c')
| -rw-r--r-- | SCSPactor.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/SCSPactor.c b/SCSPactor.c index eff5512..4ae57be 100644 --- a/SCSPactor.c +++ b/SCSPactor.c @@ -122,6 +122,7 @@ VOID WritetoTrace(struct TNCINFO * TNC, char * Msg, int Len); void SCSTryToSendDATA(struct TNCINFO * TNC, int Stream);
VOID UpdateMHwithDigis(struct TNCINFO * TNC, UCHAR * Call, char Mode, char Direction);
int standardParams(struct TNCINFO * TNC, char * buf);
+int SendPTCRadioCommand(struct TNCINFO * TNC, char * Block, int Length);
#define FEND 0xC0 // KISS CONTROL CODES
#define FESC 0xDB
@@ -3179,10 +3180,23 @@ VOID ProcessDEDFrame(struct TNCINFO * TNC, UCHAR * Msg, int framelen) if (TNC->TNCOK == FALSE)
{
// Just come up
+
+ struct RIGPORTINFO * PORT;
TNC->TNCOK = TRUE;
sprintf(TNC->WEB_COMMSSTATE,"%s TNC link OK", TNC->PortRecord->PORTCONTROL.SerialPortName);
SetWindowText(TNC->xIDC_COMMSSTATE, TNC->WEB_COMMSSTATE);
+
+ // 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)
+ {
+ UCHAR CATON[6] = {0,0,0,0,0};
+ SendPTCRadioCommand(PORT->PTC, CATON, 5);
+ }
+
}
Stream = RealStream = Msg[2];
|
