aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormichael-west <michael.west@ettus.com>2018-01-15 13:38:54 -0800
committerMartin Braun <martin.braun@ettus.com>2018-01-16 09:46:09 -0800
commit3a9cc3b93f6550c569e0a33e2e67fcd610c2eaf4 (patch)
tree435af6a2edfc3def8dff03a2ebe18c4879e025d7
parent66d0257b2e3a0e4bdb02b2511881863059a1e5a5 (diff)
downloaduhd-3a9cc3b93f6550c569e0a33e2e67fcd610c2eaf4.tar.gz
uhd-3a9cc3b93f6550c569e0a33e2e67fcd610c2eaf4.tar.bz2
uhd-3a9cc3b93f6550c569e0a33e2e67fcd610c2eaf4.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.cpp8
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 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<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;