diff options
author | Martin Braun <martin.braun@ettus.com> | 2017-05-19 18:25:12 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-12-22 15:03:53 -0800 |
commit | d52ec83e908028929994656c13d7bf988d3ce2ad (patch) | |
tree | 6c37f7bcc158d31945d1acbf7635dd1d9d7aa7fd /host/lib/usrp/dboard | |
parent | 0d10ac5faa5bd02ccaf997489ad42449d0903d24 (diff) | |
download | uhd-d52ec83e908028929994656c13d7bf988d3ce2ad.tar.gz uhd-d52ec83e908028929994656c13d7bf988d3ce2ad.tar.bz2 uhd-d52ec83e908028929994656c13d7bf988d3ce2ad.zip |
eiscat: Accept both mixed-case and upper-case antenna names (Rx0, RX0)
Diffstat (limited to 'host/lib/usrp/dboard')
-rw-r--r-- | host/lib/usrp/dboard/eiscat/eiscat_radio_ctrl_impl.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/host/lib/usrp/dboard/eiscat/eiscat_radio_ctrl_impl.cpp b/host/lib/usrp/dboard/eiscat/eiscat_radio_ctrl_impl.cpp index 648492486..dfee25acd 100644 --- a/host/lib/usrp/dboard/eiscat/eiscat_radio_ctrl_impl.cpp +++ b/host/lib/usrp/dboard/eiscat/eiscat_radio_ctrl_impl.cpp @@ -185,7 +185,10 @@ void eiscat_radio_ctrl_impl::set_rx_antenna(const std::string &ant, const size_t UHD_LOG_TRACE("EISCAT", "Setting antenna to 'BF' (which is a no-op)"); return; } - if (ant.size() < 3 or ant.size() > 4 or (ant.substr(0, 2) != "Rx" and ant.substr(0, 2) != "BF")) { + if (ant.size() < 3 or ant.size() > 4 + or (ant.substr(0, 2) != "Rx" + and ant.substr(0, 2) != "RX" + and ant.substr(0, 2) != "BF")) { throw uhd::value_error(str( boost::format("EISCAT: Invalid antenna selection: %s") % ant |