summaryrefslogtreecommitdiff
path: root/SMMain.c
diff options
context:
space:
mode:
authorDave Hibberd <d@vehibberd.com>2023-10-07 12:21:51 +0100
committerDave Hibberd <d@vehibberd.com>2023-10-07 12:21:51 +0100
commitfd7bb5bb74a6cb22f986201824342db8438bacee (patch)
tree7885e3eb57db5189c25bac86d2e1593a5d1209c1 /SMMain.c
parent8cdb5d85befdeae522e806fbd4329cf4cd8927ec (diff)
parent1407d7b68693f014156bac2462c2d41f9e3cb2a1 (diff)
Update upstream source from tag 'upstream/0.0.0.68'
Update to upstream version '0.0.0.68' with Debian dir 160466285ee470344a0f854032336d2c5dd192d0
Diffstat (limited to 'SMMain.c')
-rw-r--r--SMMain.c11
1 files changed, 9 insertions, 2 deletions
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)