aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-04-20 01:37:07 +0100
committerJosh Blum <josh@joshknows.com>2011-04-20 01:37:07 +0100
commitcf5b7b0307c12303abd24b16dadf95dfddb4b340 (patch)
treedb9f8e63f9c93bc1858db31917a459e427038a50 /host/lib
parent6f0a98ee2e9e2090c6bf7d56260cb95b0eb1fbb3 (diff)
downloaduhd-cf5b7b0307c12303abd24b16dadf95dfddb4b340.tar.gz
uhd-cf5b7b0307c12303abd24b16dadf95dfddb4b340.tar.bz2
uhd-cf5b7b0307c12303abd24b16dadf95dfddb4b340.zip
usrp-e100: shrink name field to git mcr into eeprom
Diffstat (limited to 'host/lib')
-rw-r--r--host/lib/usrp/mboard_eeprom.cpp5
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){