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

@ -281,7 +281,7 @@ private:
static void tune(double freq, void* ctx) {
RTLSDRSourceModule* _this = (RTLSDRSourceModule*)ctx;
if (_this->running) {
rtlsdr_set_center_freq(_this->openDev, _this->freq);
rtlsdr_set_center_freq(_this->openDev, freq);
}
_this->freq = freq;
spdlog::info("RTLSDRSourceModule '{0}': Tune: {1}!", _this->name, freq);