diff options
author | Martin Braun <martin.braun@ettus.com> | 2022-05-02 16:50:28 +0200 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2022-06-10 13:24:04 -0500 |
commit | edb64f7402bf7ceb33b589d9f5480ef6890f74bb (patch) | |
tree | 7557ba6846c7fae2b55b47365dd96bd49515cc0f /host/lib | |
parent | 13ccc20463093d47ecb0f9562d63414ec0d7287c (diff) | |
download | uhd-edb64f7402bf7ceb33b589d9f5480ef6890f74bb.tar.gz uhd-edb64f7402bf7ceb33b589d9f5480ef6890f74bb.tar.bz2 uhd-edb64f7402bf7ceb33b589d9f5480ef6890f74bb.zip |
n320: Fix reading DB serial in applying corrections
The frontend corrections for N320 (IQ imbalance, DC offset) require the
DB serial. However, there was an error in reading the DB serial in the
code that applies the corrections.
Diffstat (limited to 'host/lib')
-rw-r--r-- | host/lib/usrp/dboard/rhodium/rhodium_radio_control.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/usrp/dboard/rhodium/rhodium_radio_control.cpp b/host/lib/usrp/dboard/rhodium/rhodium_radio_control.cpp index ae750f903..654cf411d 100644 --- a/host/lib/usrp/dboard/rhodium/rhodium_radio_control.cpp +++ b/host/lib/usrp/dboard/rhodium/rhodium_radio_control.cpp @@ -450,8 +450,8 @@ void rhodium_radio_control_impl::_update_corrections( if (enable) { const std::vector<uint8_t> db_serial_u8 = get_db_eeprom().count("serial") - ? std::vector<uint8_t>() - : get_db_eeprom().at("serial"); + ? get_db_eeprom().at("serial") + : std::vector<uint8_t>(); const std::string db_serial = db_serial_u8.empty() ? "unknown" : std::string(db_serial_u8.begin(), db_serial_u8.end()); |