From d52ec83e908028929994656c13d7bf988d3ce2ad Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Fri, 19 May 2017 18:25:12 -0700 Subject: eiscat: Accept both mixed-case and upper-case antenna names (Rx0, RX0) --- host/lib/usrp/dboard/eiscat/eiscat_radio_ctrl_impl.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'host/lib/usrp/dboard') 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 -- cgit v1.2.3