mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2025-09-07 07:38:00 -04:00
Always center rig with 'c' if active.
This commit is contained in:
parent
74d3e771fd
commit
57e4df2b1a
@ -15,6 +15,10 @@
|
||||
#include "AppFrame.h"
|
||||
#include <algorithm>
|
||||
|
||||
#ifdef USE_HAMLIB
|
||||
#include "RigThread.h"
|
||||
#endif
|
||||
|
||||
#include <wx/numformatter.h>
|
||||
|
||||
wxBEGIN_EVENT_TABLE(WaterfallCanvas, wxGLCanvas)
|
||||
@ -449,6 +453,11 @@ void WaterfallCanvas::OnKeyDown(wxKeyEvent& event) {
|
||||
|
||||
wxGetApp().setFrequency(freq);
|
||||
}
|
||||
#ifdef USE_HAMLIB
|
||||
if (wxGetApp().rigIsActive() && !wxGetApp().getRigThread()->getControlMode()) {
|
||||
wxGetApp().getRigThread()->setFrequency(wxGetApp().getFrequency(),true);
|
||||
}
|
||||
#endif
|
||||
break;
|
||||
default:
|
||||
event.Skip();
|
||||
|
Loading…
x
Reference in New Issue
Block a user