Add center lock and modem tracking to rig control

This commit is contained in:
Charles J. Cliffe
2016-02-29 23:14:23 -05:00
parent 05a3e74645
commit 1cd8759880
10 changed files with 150 additions and 10 deletions
+3 -3
View File
@@ -454,9 +454,9 @@ void WaterfallCanvas::OnKeyDown(wxKeyEvent& event) {
wxGetApp().setFrequency(freq);
}
#ifdef USE_HAMLIB
if (wxGetApp().rigIsActive() && !wxGetApp().getRigThread()->getControlMode()) {
wxGetApp().getRigThread()->setFrequency(wxGetApp().getFrequency(),true);
}
if (wxGetApp().rigIsActive() && (!wxGetApp().getRigThread()->getControlMode() || wxGetApp().getRigThread()->getCenterLock())) {
wxGetApp().getRigThread()->setFrequency(wxGetApp().getFrequency(),true);
}
#endif
break;
default: