websocketServer: fixed PPM option. This needs to be set on running device.

pull/6/head
Michal Fratczak 2018-11-19 11:31:39 +01:00
rodzic 4974952abb
commit b84eb40f47
1 zmienionych plików z 7 dodań i 1 usunięć

Wyświetl plik

@ -137,7 +137,9 @@ bool SetupDevice(SoapySDR::Kwargs& o_device)
double biastee = GLOBALS::get().biast_;
GLOBALS::get().p_iq_source_->setOption("biastee_double", &biastee);
GLOBALS::get().p_iq_source_->setOption("sampling_rate_double", &GLOBALS::get().sampling_rate_);
GLOBALS::get().p_iq_source_->setOption("ppm_double", &GLOBALS::get().ppm_);
// this works only if device is running. not yet here
// GLOBALS::get().p_iq_source_->setOption("ppm_double", &GLOBALS::get().ppm_);
o_device = device;
return true;
@ -166,6 +168,10 @@ void DECODER_FEED_THREAD()
return;
}
// this works only if device is running, but feels out of place here
// consider moving start() outside of this function
GLOBALS::get().p_iq_source_->setOption("ppm_double", &GLOBALS::get().ppm_);
//////
//