Fixed bug tuning with sdrplay and rtlsdr

This commit is contained in:
Ryzerth
2021-02-15 13:18:21 +01:00
parent cc9da905a6
commit b4d06697b4
3 changed files with 6 additions and 6 deletions

View File

@ -147,7 +147,7 @@ private:
_this->freq = freq;
if (_this->running) {
// SET PLUTO FREQ HERE
iio_channel_attr_write_longlong(iio_device_find_channel(_this->phy, "altvoltage0", true), "frequency", round(_this->freq));
iio_channel_attr_write_longlong(iio_device_find_channel(_this->phy, "altvoltage0", true), "frequency", round(freq));
}
spdlog::info("PlutoSDRSourceModule '{0}': Tune: {1}!", _this->name, freq);
}