aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric <ewild@sysmocom.de>2021-07-11 21:12:04 +0200
committerEric <ewild@sysmocom.de>2021-07-11 21:12:04 +0200
commitecea734b97357126daee5ca73ebf82d5bde9839b (patch)
tree139ec8eb70bc6972f620353165f4dcf1d800e71c
parent0c34c64a16e47e6957b7a84e6f43ca52868b960a (diff)
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
-rw-r--r--Transceiver52M/device/lms/LMSDevice.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Transceiver52M/device/lms/LMSDevice.cpp b/Transceiver52M/device/lms/LMSDevice.cpp
index 9dc3ab2..9b6c792 100644
--- a/Transceiver52M/device/lms/LMSDevice.cpp
+++ b/Transceiver52M/device/lms/LMSDevice.cpp
@@ -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;
}