Fix for freq. entry on USB/LSB

This commit is contained in:
Charles J. Cliffe 2016-01-03 10:59:24 -05:00
parent c94cdb0855
commit 693e675421

View File

@ -52,9 +52,6 @@ void FrequencyDialog::OnChar(wxKeyEvent& event) {
case WXK_NUMPAD_ENTER:
// Do Stuff
freq = strToFrequency(dialogText->GetValue().ToStdString());
if (lastDemodType == "USB" || lastDemodType == "LSB") {
freq *= 2;
}
if (targetMode == FDIALOG_TARGET_DEFAULT) {
if (activeDemod) {
@ -67,6 +64,9 @@ void FrequencyDialog::OnChar(wxKeyEvent& event) {
}
}
if (targetMode == FDIALOG_TARGET_BANDWIDTH) {
if (lastDemodType == "USB" || lastDemodType == "LSB") {
freq *= 2;
}
if (activeDemod) {
activeDemod->setBandwidth(freq);
} else {