Frequency dialog bw limit check

This commit is contained in:
Charles J. Cliffe 2020-08-10 23:05:28 -04:00
parent 63631cd255
commit 2f0bbef234

View File

@ -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 {