mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2025-07-07 04:05:17 -04: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"]) {
|
} else if (dev && event.GetProperty() == devSettings["offset"]) {
|
||||||
DeviceConfig *devConfig = wxGetApp().getConfig()->getDevice(dev->getDeviceId());
|
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()) {
|
if (dev->isActive() || !wxGetApp().getDevice()) {
|
||||||
|
|
||||||
wxGetApp().setOffset(offset);
|
wxGetApp().setOffset((long long)offset_In_KHz * 1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user