aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/mboard_eeprom.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-11-04 23:44:58 -0700
committerJosh Blum <josh@joshknows.com>2010-11-04 23:44:58 -0700
commit0066ef2972f35d3d1ba7a9127f197fba9e754d88 (patch)
tree8d6b16b8f8f7e4feef56e0dd21988ef3623ad882 /host/lib/usrp/mboard_eeprom.cpp
parent9dff7952f618360943470711636db64fe2376b40 (diff)
downloaduhd-0066ef2972f35d3d1ba7a9127f197fba9e754d88.tar.gz
uhd-0066ef2972f35d3d1ba7a9127f197fba9e754d88.tar.bz2
uhd-0066ef2972f35d3d1ba7a9127f197fba9e754d88.zip
usrp: replaced device specific burner apps with one generic one for mboard eeproms
Diffstat (limited to 'host/lib/usrp/mboard_eeprom.cpp')
-rw-r--r--host/lib/usrp/mboard_eeprom.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/host/lib/usrp/mboard_eeprom.cpp b/host/lib/usrp/mboard_eeprom.cpp
index 2f5d41c95..81dc6f194 100644
--- a/host/lib/usrp/mboard_eeprom.cpp
+++ b/host/lib/usrp/mboard_eeprom.cpp
@@ -40,8 +40,7 @@ static const size_t NAME_MAX_LEN = 32 - SERIAL_LEN;
static const std::string bytes_to_string(const byte_vector_t &bytes){
std::string out;
BOOST_FOREACH(boost::uint8_t byte, bytes){
- if (byte == '\0') return out;
- if (byte < 32 or byte > 127) return "";
+ if (byte < 32 or byte > 127) return out;
out += byte;
}
return out;