diff options
-rw-r--r-- | host/lib/usrp/x300/x300_radio_control.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/host/lib/usrp/x300/x300_radio_control.cpp b/host/lib/usrp/x300/x300_radio_control.cpp index 8e4351d65..c41a19401 100644 --- a/host/lib/usrp/x300/x300_radio_control.cpp +++ b/host/lib/usrp/x300/x300_radio_control.cpp @@ -1018,11 +1018,11 @@ public: result["rx_rev"] = str_to_bytes(rx_eeprom.revision); } if (get_tree()->exists(DB_PATH / "tx_eeprom")) { - const auto rx_eeprom = - get_tree()->access<dboard_eeprom_t>(DB_PATH / "rx_eeprom").get(); - result["tx_id"] = str_to_bytes(rx_eeprom.id.to_pp_string()); - result["tx_serial"] = str_to_bytes(rx_eeprom.serial); - result["tx_rev"] = str_to_bytes(rx_eeprom.revision); + const auto tx_eeprom = + get_tree()->access<dboard_eeprom_t>(DB_PATH / "tx_eeprom").get(); + result["tx_id"] = str_to_bytes(tx_eeprom.id.to_pp_string()); + result["tx_serial"] = str_to_bytes(tx_eeprom.serial); + result["tx_rev"] = str_to_bytes(tx_eeprom.revision); } return result; } |