FSK tweaks, minimum bandwidth adjust

This commit is contained in:
Charles J. Cliffe
2015-12-01 00:59:11 -05:00
parent 76d69ffd78
commit 0f8065f48a
12 changed files with 46 additions and 32 deletions
+2 -2
View File
@@ -173,8 +173,8 @@ int DemodulatorMgr::getLastBandwidth() const {
}
void DemodulatorMgr::setLastBandwidth(int lastBandwidth) {
if (lastBandwidth < 1500) {
lastBandwidth = 1500;
if (lastBandwidth < MIN_BANDWIDTH) {
lastBandwidth = MIN_BANDWIDTH;
} else if (lastBandwidth > wxGetApp().getSampleRate()) {
lastBandwidth = wxGetApp().getSampleRate();
}