summaryrefslogtreecommitdiff
path: root/SMMain.c
diff options
context:
space:
mode:
authorDave Hibberd <d@vehibberd.com>2023-10-07 12:21:48 +0100
committerDave Hibberd <d@vehibberd.com>2023-10-07 12:21:48 +0100
commit1407d7b68693f014156bac2462c2d41f9e3cb2a1 (patch)
tree9e6f7611858dc8e567b636b6c593a51b005762f2 /SMMain.c
parent3cdcbeea3e2891f4a10c79b272da144f37ff24f3 (diff)
New upstream version 0.0.0.68upstream/0.0.0.68
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)