aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Szymaniak <jon.szymaniak@gmail.com>2014-02-16 00:11:30 -0500
committerDimitri Stolnikov <horiz0n@gmx.net>2014-02-16 09:30:49 +0100
commit40f93c2ae1c2c9a6e726cdb377dc248fdcef646b (patch)
treefac7a503df23296ba4ab3d6f40a0f6dda02e13fa
parent1633dbaa74a5907343676f753e863de7fbc0dd2a (diff)
bladeRF: RXVGA2 range is [0, 30]
While the RXVGA2 gain can technically go up to 60 dB, the LMS6002D datasheet recommends it be clamped to 30dB. libbladeRF clamps to a max of 30dB, so there's no use in setting max to 60 dB here.
-rw-r--r--lib/bladerf/bladerf_source_c.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bladerf/bladerf_source_c.cc b/lib/bladerf/bladerf_source_c.cc
index 1017dcf..96ba94d 100644
--- a/lib/bladerf/bladerf_source_c.cc
+++ b/lib/bladerf/bladerf_source_c.cc
@@ -140,7 +140,7 @@ bladerf_source_c::bladerf_source_c (const std::string &args)
_vga1_range = osmosdr::gain_range_t( 5, 30, 1 );
/* Set the range of VGA2 VGA2GAIN[4:0], not recommended to be used above 30dB */
- _vga2_range = osmosdr::gain_range_t( 0, 60, 3 );
+ _vga2_range = osmosdr::gain_range_t( 0, 30, 3 );
/* Warn user about using an old FPGA version, as we no longer strip off the
* markers that were pressent in the pre-v0.0.1 FPGA */