From cf9ffe00bf6c0c7dd17ceef0a6ae822fe3a9a1f5 Mon Sep 17 00:00:00 2001 From: Dave Hibberd Date: Sat, 28 Dec 2024 12:31:37 +0000 Subject: New upstream version 0.0.0.74~rc2 --- SMMain.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'SMMain.c') diff --git a/SMMain.c b/SMMain.c index dc8a0cf..6500e2b 100644 --- a/SMMain.c +++ b/SMMain.c @@ -224,7 +224,7 @@ void SampleSink(int LR, short Sample) { // Need to upsample to 48K. Try just duplicating sample - uint32_t * ptr = &DMABuffer[2 * Number]; + uint16_t * ptr = &DMABuffer[2 * Number]; *(&ptr[1]) = *(ptr); *(&ptr[2]) = *(ptr); @@ -388,7 +388,7 @@ extern UCHAR * pixelPointer; #endif extern int blnBusyStatus; -BusyDet = 5; +int BusyDet = 5; #define PLOTWATERFALL @@ -522,6 +522,12 @@ void SMUpdateBusyDetector(int LR, float * Real, float *Imag) Low = tx_freq[chan] - txbpf[chan] / 2; High = tx_freq[chan] + txbpf[chan] / 2; + if (Low < 100) + continue; + + if (High > 3300) + continue; + // Low = tx_freq[chan] - 0.5*rx_shift[chan]; // High = tx_freq[chan] + 0.5*rx_shift[chan]; -- cgit v1.2.3