summaryrefslogtreecommitdiff
path: root/SMMain.c
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2024-12-28 12:31:37 +0000
committerDave Hibberd <hibby@debian.org>2024-12-28 12:31:37 +0000
commitcf9ffe00bf6c0c7dd17ceef0a6ae822fe3a9a1f5 (patch)
tree044a7732ccb120e7d90e7632306f8edc8e23c63a /SMMain.c
parentd0709a1e0a04bf74f240dc0fdb8697f030b68cea (diff)
New upstream version 0.0.0.74~rc2upstream/0.0.0.74_rc2upstream/latest
Diffstat (limited to 'SMMain.c')
-rw-r--r--SMMain.c10
1 files changed, 8 insertions, 2 deletions
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];