diff options
Diffstat (limited to 'host/lib/usrp/multi_usrp.cpp')
-rw-r--r-- | host/lib/usrp/multi_usrp.cpp | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/host/lib/usrp/multi_usrp.cpp b/host/lib/usrp/multi_usrp.cpp index b80790f64..bb5b9e5fc 100644 --- a/host/lib/usrp/multi_usrp.cpp +++ b/host/lib/usrp/multi_usrp.cpp @@ -1145,8 +1145,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"); + } } } @@ -1232,8 +1234,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"); + } } } @@ -1374,8 +1378,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"); + } } } @@ -1456,8 +1462,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"); + } } } |