diff options
-rw-r--r-- | host/include/uhd/types/ranges.hpp | 6 | ||||
-rw-r--r-- | host/lib/usrp/dboard/db_unknown.cpp | 4 |
2 files changed, 8 insertions, 2 deletions
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<float>; typedef meta_range_t<float> gain_range_t; + + //! export a symbol for the freq range type + template struct UHD_API meta_range_t<double>; typedef meta_range_t<double> freq_range_t; + } //namespace uhd #include <uhd/types/ranges.ipp> 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: |