aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/multi_usrp.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2012-03-11 18:35:52 -0700
committerJosh Blum <josh@joshknows.com>2012-03-23 14:36:56 -0700
commit6ff4100f0cc40fd31277672b89090ee744914c34 (patch)
tree241d8e641a31f97f53137bcb5a52f5b8c678d5f1 /host/lib/usrp/multi_usrp.cpp
parentd7a353461100be58eb973532ff2c1b7ddaddda52 (diff)
downloaduhd-6ff4100f0cc40fd31277672b89090ee744914c34.tar.gz
uhd-6ff4100f0cc40fd31277672b89090ee744914c34.tar.bz2
uhd-6ff4100f0cc40fd31277672b89090ee744914c34.zip
fifo ctrl: implement timed command feature detection
Diffstat (limited to 'host/lib/usrp/multi_usrp.cpp')
-rw-r--r--host/lib/usrp/multi_usrp.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/host/lib/usrp/multi_usrp.cpp b/host/lib/usrp/multi_usrp.cpp
index fd556c9f8..e2efa9a00 100644
--- a/host/lib/usrp/multi_usrp.cpp
+++ b/host/lib/usrp/multi_usrp.cpp
@@ -358,6 +358,9 @@ public:
void set_command_time(const time_spec_t &time_spec, size_t mboard){
if (mboard != ALL_MBOARDS){
+ if (not _tree->exists(mb_root(mboard) / "time/cmd")){
+ throw uhd::not_implemented_error("timed command feature not implemented on this hardware");
+ }
_tree->access<time_spec_t>(mb_root(mboard) / "time/cmd").set(time_spec);
return;
}