diff options
| author | Dave Hibberd <d@vehibberd.com> | 2023-12-08 12:26:59 +0000 |
|---|---|---|
| committer | Dave Hibberd <d@vehibberd.com> | 2023-12-08 12:26:59 +0000 |
| commit | fd1249b1e27896943e6f0558557ea55b9e87bd7e (patch) | |
| tree | 756a6f7c89b22d9d92a175b430b4b323d94d3659 /SCSPactor.c | |
| parent | fda3d6ffaced810d4c98cf05dc2e29e934ed6eea (diff) | |
| parent | 2ccd083256a3a05ae1f402a0ef259fbfff709088 (diff) | |
Update upstream source from tag 'upstream/6.0.24.22'
Update to upstream version '6.0.24.22'
with Debian dir 0520fb299a06420760e7faf0173e3164bfbff640
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];
|
