Fix #614: Wrong Freq offset applied if set from SDR Devices

This commit is contained in:
vsonnier 2018-02-07 13:13:52 +01:00
parent 70371890a2
commit 490f72ceeb

View File

@ -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);
}
}