aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--host/include/uhd/types/sensors.hpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/host/include/uhd/types/sensors.hpp b/host/include/uhd/types/sensors.hpp
index b6215367f..97d82b4e2 100644
--- a/host/include/uhd/types/sensors.hpp
+++ b/host/include/uhd/types/sensors.hpp
@@ -117,13 +117,16 @@ namespace uhd{
*/
const std::string unit;
- //! The data type of the value
- const enum{
+ //! Enumeration of possible data types in a sensor
+ enum data_type_t {
BOOLEAN = 'b',
INTEGER = 'i',
REALNUM = 'r',
STRING = 's'
- } type;
+ };
+
+ //! The data type of the value
+ const data_type_t type;
//! Convert this sensor value into a printable string
std::string to_pp_string(void) const;