aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/x300/x300_radio_control.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/usrp/x300/x300_radio_control.cpp')
-rw-r--r--host/lib/usrp/x300/x300_radio_control.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/host/lib/usrp/x300/x300_radio_control.cpp b/host/lib/usrp/x300/x300_radio_control.cpp
index c6750e397..73006a7c8 100644
--- a/host/lib/usrp/x300/x300_radio_control.cpp
+++ b/host/lib/usrp/x300/x300_radio_control.cpp
@@ -630,8 +630,10 @@ public:
}
}
} else {
- throw uhd::runtime_error(
- "This device does not support manual configuration of LOs");
+ if (not(src == "internal" and name == ALL_LOS)) {
+ throw uhd::runtime_error(
+ "This device only supports setting internal source on all LOs");
+ }
}
}
@@ -691,8 +693,10 @@ public:
}
}
} else {
- throw uhd::runtime_error(
- "This device does not support manual configuration of LOs");
+ if (not(enabled == false and name == ALL_LOS)) {
+ throw uhd::runtime_error("This device only supports setting LO export "
+ "enabled to false on all LOs");
+ }
}
}