mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2024-11-23 04:08:36 -05:00
Fix for freq. entry on USB/LSB
This commit is contained in:
parent
c94cdb0855
commit
693e675421
@ -52,9 +52,6 @@ void FrequencyDialog::OnChar(wxKeyEvent& event) {
|
|||||||
case WXK_NUMPAD_ENTER:
|
case WXK_NUMPAD_ENTER:
|
||||||
// Do Stuff
|
// Do Stuff
|
||||||
freq = strToFrequency(dialogText->GetValue().ToStdString());
|
freq = strToFrequency(dialogText->GetValue().ToStdString());
|
||||||
if (lastDemodType == "USB" || lastDemodType == "LSB") {
|
|
||||||
freq *= 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (targetMode == FDIALOG_TARGET_DEFAULT) {
|
if (targetMode == FDIALOG_TARGET_DEFAULT) {
|
||||||
if (activeDemod) {
|
if (activeDemod) {
|
||||||
@ -67,6 +64,9 @@ void FrequencyDialog::OnChar(wxKeyEvent& event) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (targetMode == FDIALOG_TARGET_BANDWIDTH) {
|
if (targetMode == FDIALOG_TARGET_BANDWIDTH) {
|
||||||
|
if (lastDemodType == "USB" || lastDemodType == "LSB") {
|
||||||
|
freq *= 2;
|
||||||
|
}
|
||||||
if (activeDemod) {
|
if (activeDemod) {
|
||||||
activeDemod->setBandwidth(freq);
|
activeDemod->setBandwidth(freq);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user