From 3922f56adf33126abb288611f5a64b9fb1c11b25 Mon Sep 17 00:00:00 2001 From: Moritz Fischer Date: Thu, 16 Jul 2015 13:59:14 -0700 Subject: e3xx: Make all e3xx motherboards show up as such. All currently available e3xx daugherboards are equivalent from a UHD perspective, so make them consistently show up as "E3XX". Signed-off-by: Moritz Fischer --- host/lib/usrp/e300/e300_eeprom_manager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'host/lib') diff --git a/host/lib/usrp/e300/e300_eeprom_manager.cpp b/host/lib/usrp/e300/e300_eeprom_manager.cpp index 778e3150c..45d1abea7 100644 --- a/host/lib/usrp/e300/e300_eeprom_manager.cpp +++ b/host/lib/usrp/e300/e300_eeprom_manager.cpp @@ -226,10 +226,10 @@ std::string e300_eeprom_manager::get_mb_type_string(void) const _mb_eeprom["product"]); switch (product) { case E300_MB_PID: - return "E300"; + return "E3XX"; case E310_MB_PID: - return "E310"; + return "E3XX"; default: return "UNKNOWN"; -- cgit v1.2.3 From f3e827ae2fcd3803403b0dec3be30825b9bd909e Mon Sep 17 00:00:00 2001 From: Moritz Fischer Date: Thu, 16 Jul 2015 15:04:06 -0700 Subject: e3xx: eeprom: Fix off by one error in serial number writing code. Signed-off-by: Moritz Fischer --- host/lib/usrp/e300/e300_eeprom_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host/lib') diff --git a/host/lib/usrp/e300/e300_eeprom_manager.cpp b/host/lib/usrp/e300/e300_eeprom_manager.cpp index 45d1abea7..752bd3768 100644 --- a/host/lib/usrp/e300/e300_eeprom_manager.cpp +++ b/host/lib/usrp/e300/e300_eeprom_manager.cpp @@ -38,7 +38,7 @@ static void _string_to_bytes(const std::string &string, size_t max_len, boost::u for (size_t i = 0; i < len; i++){ buffer[i] = string[i]; } - if (len < max_len - 1) + if (len < max_len) buffer[len] = '\0'; } -- cgit v1.2.3