host: libbladeRF/bladerf2: fix TX atten cache scale (#32)
This value needs to be scaled before going into the cache.
This commit is contained in:
parent
df36134c7f
commit
98442e2187
1 changed files with 1 additions and 1 deletions
|
|
@ -1690,7 +1690,7 @@ static int bladerf2_set_gain(struct bladerf *dev, bladerf_channel ch, int gain)
|
|||
val = (int)-_clamp_to_range(&range, gain);
|
||||
|
||||
if (board_data->tx_mute[ch >> 1]) {
|
||||
status = _set_tx_gain_cache(dev, ch, val);
|
||||
status = _set_tx_gain_cache(dev, ch, val * 1000);
|
||||
if (status < 0) {
|
||||
RETURN_ERROR_AD9361("_set_tx_gain_cache", status);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue