summaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/dboard
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-04-14 17:42:39 -0700
committerJosh Blum <josh@joshknows.com>2010-04-14 17:42:39 -0700
commitb9e7e38a84046fc345bcac12611205fbea0bef19 (patch)
tree08d3a26c05f8f2e05fa957bb6d4ed09e7488e9a5 /host/lib/usrp/dboard
parentf57f616cfd6406cd67681813d464695c8c160f9e (diff)
downloaduhd-b9e7e38a84046fc345bcac12611205fbea0bef19.tar.gz
uhd-b9e7e38a84046fc345bcac12611205fbea0bef19.tar.bz2
uhd-b9e7e38a84046fc345bcac12611205fbea0bef19.zip
removed some windows warnings
Diffstat (limited to 'host/lib/usrp/dboard')
-rw-r--r--host/lib/usrp/dboard/db_rfx.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/usrp/dboard/db_rfx.cpp b/host/lib/usrp/dboard/db_rfx.cpp
index 3f318d3ed..11a689b20 100644
--- a/host/lib/usrp/dboard/db_rfx.cpp
+++ b/host/lib/usrp/dboard/db_rfx.cpp
@@ -175,10 +175,10 @@ void rfx_xcvr::set_rx_ant(const std::string &ant){
void rfx_xcvr::set_rx_pga0_gain(float gain){
//clip the input
- gain = std::clip(gain, 0, _max_rx_pga0_gain);
+ gain = std::clip<float>(gain, 0, _max_rx_pga0_gain);
//voltage level constants
- static const float max_volts = .2, min_volts = 1.2;
+ static const float max_volts = float(.2), min_volts = float(1.2);
static const float slope = (max_volts-min_volts)/_max_rx_pga0_gain;
//calculate the voltage for the aux dac