lms: init band

Gain setting without a band was apparently led to a very low output
level, thanks to defog for pointing this out.

Change-Id: I8b59d38dd7b0781776c9e61226185879541fdc53
Related: OS#3342
This commit is contained in:
Eric Wild 2021-07-11 21:12:04 +02:00
parent 0c34c64a16
commit ecea734b97
1 changed files with 3 additions and 1 deletions

View File

@ -1019,12 +1019,14 @@ bool LMSDevice::setTxFreq(double wFreq, size_t chan)
return false;
}
if (!set_band(req_band))
return false;
if (LMS_SetLOFrequency(m_lms_dev, LMS_CH_TX, chan, wFreq) < 0) {
LOGCHAN(chan, DDEV, ERROR) << "Error setting Tx Freq to " << wFreq << " Hz";
return false;
}
band = req_band;
return true;
}