aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
Diffstat (limited to 'host')
-rw-r--r--host/lib/usrp/multi_usrp.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/host/lib/usrp/multi_usrp.cpp b/host/lib/usrp/multi_usrp.cpp
index 9b61344ef..cdce43055 100644
--- a/host/lib/usrp/multi_usrp.cpp
+++ b/host/lib/usrp/multi_usrp.cpp
@@ -803,7 +803,10 @@ public:
}
std::vector<std::string> get_mboard_sensor_names(size_t mboard){
- return _tree->list(mb_root(mboard) / "sensors");
+ if (_tree->exists(mb_root(mboard) / "sensors")) {
+ return _tree->list(mb_root(mboard) / "sensors");
+ }
+ return {};
}
void set_user_register(const uint8_t addr, const uint32_t data, size_t mboard){