diff options
author | Josh Blum <josh@joshknows.com> | 2011-04-20 01:37:07 +0100 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-04-20 01:37:07 +0100 |
commit | cf5b7b0307c12303abd24b16dadf95dfddb4b340 (patch) | |
tree | db9f8e63f9c93bc1858db31917a459e427038a50 /host | |
parent | 6f0a98ee2e9e2090c6bf7d56260cb95b0eb1fbb3 (diff) | |
download | uhd-cf5b7b0307c12303abd24b16dadf95dfddb4b340.tar.gz uhd-cf5b7b0307c12303abd24b16dadf95dfddb4b340.tar.bz2 uhd-cf5b7b0307c12303abd24b16dadf95dfddb4b340.zip |
usrp-e100: shrink name field to git mcr into eeprom
Diffstat (limited to 'host')
-rw-r--r-- | host/lib/usrp/mboard_eeprom.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/host/lib/usrp/mboard_eeprom.cpp b/host/lib/usrp/mboard_eeprom.cpp index 29bc5ee32..297de990f 100644 --- a/host/lib/usrp/mboard_eeprom.cpp +++ b/host/lib/usrp/mboard_eeprom.cpp @@ -23,6 +23,7 @@ #include <boost/lexical_cast.hpp> #include <boost/foreach.hpp> #include <algorithm> +#include <iostream> #include <cstddef> using namespace uhd; @@ -251,8 +252,8 @@ struct e100_eeprom_map{ unsigned char env_var[16]; unsigned char env_setting[64]; unsigned char serial[10]; - unsigned char name[NAME_MAX_LEN]; - float mcr; + unsigned char name[16]; + unsigned char mcr[sizeof(float)]; }; template <typename T> static const byte_vector_t to_bytes(const T &item){ |