From 1407d7b68693f014156bac2462c2d41f9e3cb2a1 Mon Sep 17 00:00:00 2001 From: Dave Hibberd Date: Sat, 7 Oct 2023 12:21:48 +0100 Subject: New upstream version 0.0.0.68 --- SMMain.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'SMMain.c') diff --git a/SMMain.c b/SMMain.c index 3c87359..141947b 100644 --- a/SMMain.c +++ b/SMMain.c @@ -54,6 +54,7 @@ unsigned short * SendtoCard(unsigned short * buf, int n); short * SoundInit(); void DoTX(int Chan); void UDPPollReceivedSamples(); +extern void checkforCWID(); extern int SampleNo; @@ -139,6 +140,8 @@ void soundMain() init_raduga(); // Set up waterfall colour table initfft(); + il2p_init(1); + if (nonGUIMode) { @@ -563,7 +566,7 @@ int Freq_Change(int Chan, int Freq) tx_freq[Chan] = Freq; pnt_change[Chan] = TRUE; - wf_pointer(soundChannel[Chan]); + wf_pointer(Chan); return Freq; } @@ -805,6 +808,8 @@ void DoTX(int Chan) // Start a new send. modulator should handle TXD etc + checkforCWID(); // See if need to start CWID timer in afteractivity mode + Debugprintf("TX Start"); SampleNo = 0; @@ -1131,7 +1136,9 @@ void OpenPTTPort() void ClosePTTPort() { - CloseCOMPort(hPTTDevice); + if (hPTTDevice) + CloseCOMPort(hPTTDevice); + hPTTDevice = 0; } void CM108_set_ptt(int PTTState) -- cgit v1.2.3