diff options
| author | Dave Hibberd <d@vehibberd.com> | 2023-10-07 12:21:48 +0100 |
|---|---|---|
| committer | Dave Hibberd <d@vehibberd.com> | 2023-10-07 12:21:48 +0100 |
| commit | 1407d7b68693f014156bac2462c2d41f9e3cb2a1 (patch) | |
| tree | 9e6f7611858dc8e567b636b6c593a51b005762f2 /SMMain.c | |
| parent | 3cdcbeea3e2891f4a10c79b272da144f37ff24f3 (diff) | |
New upstream version 0.0.0.68upstream/0.0.0.68
Diffstat (limited to 'SMMain.c')
| -rw-r--r-- | SMMain.c | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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)
|
