From 3a9cc3b93f6550c569e0a33e2e67fcd610c2eaf4 Mon Sep 17 00:00:00 2001 From: michael-west Date: Mon, 15 Jan 2018 13:38:54 -0800 Subject: fixup! UBX: Add implementation of TDD xcvr mode and force TX PA on in TDD mode to reduce transient at start of transmission --- host/lib/usrp/dboard/db_ubx.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/host/lib/usrp/dboard/db_ubx.cpp b/host/lib/usrp/dboard/db_ubx.cpp index 474c78dec..b1e712b69 100644 --- a/host/lib/usrp/dboard/db_ubx.cpp +++ b/host/lib/usrp/dboard/db_ubx.cpp @@ -218,7 +218,13 @@ public: _iface = get_iface(); dboard_id_t rx_id = get_rx_id(); dboard_id_t tx_id = get_tx_id(); - const size_t revision = boost::lexical_cast(get_rx_eeprom().revision); + size_t revision = 1; // default to rev A + // Get revision if programmed + const std::string revision_str = get_rx_eeprom().revision; + if (not revision_str.empty()) + { + revision = boost::lexical_cast(revision_str); + } _high_isolation = false; if (rx_id == UBX_PROTO_V3_RX_ID and tx_id == UBX_PROTO_V3_TX_ID) { _rev = 0; -- cgit v1.2.3