From 2f0bbef2349ac6d736a65bbe6ffc5a66594a7bfd Mon Sep 17 00:00:00 2001 From: "Charles J. Cliffe" Date: Mon, 10 Aug 2020 23:05:28 -0400 Subject: [PATCH] Frequency dialog bw limit check --- src/FrequencyDialog.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/FrequencyDialog.cpp b/src/FrequencyDialog.cpp index 0f83da1..ce17e99 100644 --- a/src/FrequencyDialog.cpp +++ b/src/FrequencyDialog.cpp @@ -158,6 +158,9 @@ void FrequencyDialog::OnChar(wxKeyEvent& event) { if (lastDemodType == "USB" || lastDemodType == "LSB") { freq *= 2; } + if (freq > CHANNELIZER_RATE_MAX) { + freq = CHANNELIZER_RATE_MAX; + } if (activeDemod) { activeDemod->setBandwidth(freq); } else {