From f22303e6e4a2f425d588439cc05f8b04ef79c1d2 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Thu, 11 Nov 2010 19:12:41 -0800 Subject: uhd: fixed ranges stuff, export symbols and use doubles not iterators... --- host/include/uhd/types/ranges.hpp | 6 ++++++ host/lib/usrp/dboard/db_unknown.cpp | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'host') diff --git a/host/include/uhd/types/ranges.hpp b/host/include/uhd/types/ranges.hpp index 206c64726..c10c36ccf 100644 --- a/host/include/uhd/types/ranges.hpp +++ b/host/include/uhd/types/ranges.hpp @@ -103,9 +103,15 @@ namespace uhd{ }; + //! export a symbol for the gain range type + template struct UHD_API meta_range_t; typedef meta_range_t gain_range_t; + + //! export a symbol for the freq range type + template struct UHD_API meta_range_t; typedef meta_range_t freq_range_t; + } //namespace uhd #include diff --git a/host/lib/usrp/dboard/db_unknown.cpp b/host/lib/usrp/dboard/db_unknown.cpp index d0359d124..168e1971c 100644 --- a/host/lib/usrp/dboard/db_unknown.cpp +++ b/host/lib/usrp/dboard/db_unknown.cpp @@ -131,7 +131,7 @@ void unknown_rx::rx_get(const wax::obj &key_, wax::obj &val){ return; case SUBDEV_PROP_FREQ_RANGE: - val = freq_range_t(0, 0); + val = freq_range_t(0.0, 0.0); return; case SUBDEV_PROP_ANTENNA: @@ -233,7 +233,7 @@ void unknown_tx::tx_get(const wax::obj &key_, wax::obj &val){ return; case SUBDEV_PROP_FREQ_RANGE: - val = freq_range_t(0, 0); + val = freq_range_t(0.0, 0.0); return; case SUBDEV_PROP_ANTENNA: -- cgit v1.2.3