mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2024-11-26 21:58:37 -05:00
Fix offset frequency drift..
This commit is contained in:
parent
693e675421
commit
0ace8657b2
@ -246,8 +246,8 @@ void SDRThread::updateSettings() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
double devFreq = device->getFrequency(SOAPY_SDR_RX,0);
|
double devFreq = device->getFrequency(SOAPY_SDR_RX,0);
|
||||||
if (devFreq != frequency.load()) {
|
if (((long long)devFreq + offset.load()) != frequency.load()) {
|
||||||
wxGetApp().setFrequency((long long)devFreq);
|
wxGetApp().setFrequency((long long)devFreq + offset.load());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (agc_mode_changed.load()) {
|
if (agc_mode_changed.load()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user