mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2024-11-26 21:58:37 -05:00
Fix #614: Wrong Freq offset applied if set from SDR Devices
This commit is contained in:
parent
70371890a2
commit
490f72ceeb
@ -508,12 +508,12 @@ void SDRDevicesDialog::OnPropGridChanged( wxPropertyGridEvent& event ) {
|
||||
} else if (dev && event.GetProperty() == devSettings["offset"]) {
|
||||
DeviceConfig *devConfig = wxGetApp().getConfig()->getDevice(dev->getDeviceId());
|
||||
|
||||
long offset = event.GetPropertyValue().GetInteger();
|
||||
long offset_In_KHz = event.GetPropertyValue().GetInteger();
|
||||
|
||||
devConfig->setOffset(offset);
|
||||
devConfig->setOffset((long long) offset_In_KHz * 1000);
|
||||
if (dev->isActive() || !wxGetApp().getDevice()) {
|
||||
|
||||
wxGetApp().setOffset(offset);
|
||||
wxGetApp().setOffset((long long)offset_In_KHz * 1000);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user