diff options
author | michael-west <michael.west@ettus.com> | 2018-01-15 13:38:54 -0800 |
---|---|---|
committer | michael-west <michael.west@ettus.com> | 2018-01-17 10:22:34 -0800 |
commit | b6e7b96c879610341e05d4c2079e8120d466666a (patch) | |
tree | f333379260bbeecf41915b1c3ab1e431c2ec499d | |
parent | d9643b9d9c72d359b238f22d2850a365c3a1c360 (diff) | |
download | uhd-b6e7b96c879610341e05d4c2079e8120d466666a.tar.gz uhd-b6e7b96c879610341e05d4c2079e8120d466666a.tar.bz2 uhd-b6e7b96c879610341e05d4c2079e8120d466666a.zip |
fixup! UBX: Add implementation of TDD xcvr mode and force TX PA on in TDD mode to reduce transient at start of transmission
-rw-r--r-- | host/lib/usrp/dboard/db_ubx.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/host/lib/usrp/dboard/db_ubx.cpp b/host/lib/usrp/dboard/db_ubx.cpp index 3c5b38d60..693231509 100644 --- a/host/lib/usrp/dboard/db_ubx.cpp +++ b/host/lib/usrp/dboard/db_ubx.cpp @@ -229,7 +229,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<size_t>(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<size_t>(revision_str); + } _high_isolation = false; if (rx_id == UBX_PROTO_V3_RX_ID and tx_id == UBX_PROTO_V3_TX_ID) { _rev = 0; |