summaryrefslogtreecommitdiff
path: root/SMMain.c
diff options
context:
space:
mode:
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)