From edb64f7402bf7ceb33b589d9f5480ef6890f74bb Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Mon, 2 May 2022 16:50:28 +0200 Subject: 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. --- host/lib/usrp/dboard/rhodium/rhodium_radio_control.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'host/lib/usrp/dboard/rhodium/rhodium_radio_control.cpp') 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 db_serial_u8 = get_db_eeprom().count("serial") - ? std::vector() - : get_db_eeprom().at("serial"); + ? get_db_eeprom().at("serial") + : std::vector(); const std::string db_serial = db_serial_u8.empty() ? "unknown" : std::string(db_serial_u8.begin(), db_serial_u8.end()); -- cgit v1.2.3