From 1a695f94849644773deda18f84a07ef1a206481b Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Tue, 11 Oct 2011 18:09:45 -0700 Subject: b100: new eeprom map for special 9 byte serial --- firmware/fx2/b100/usrp_main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'firmware/fx2/b100/usrp_main.c') diff --git a/firmware/fx2/b100/usrp_main.c b/firmware/fx2/b100/usrp_main.c index 7558fadb8..391a6d94f 100644 --- a/firmware/fx2/b100/usrp_main.c +++ b/firmware/fx2/b100/usrp_main.c @@ -37,8 +37,8 @@ * offsets into boot eeprom for configuration values */ #define HW_REV_OFFSET 5 -#define SERIAL_NO_OFFSET 248 -#define SERIAL_NO_LEN 8 +#define SERIAL_NO_OFFSET 247 +#define SERIAL_NO_LEN 9 #define bRequestType SETUPDAT[0] @@ -342,7 +342,7 @@ void patch_usb_descriptors(void) { static xdata unsigned char hw_rev; - static xdata unsigned char serial_no[8]; + static xdata unsigned char serial_no[SERIAL_NO_LEN]; unsigned char i; eeprom_read(I2C_ADDR_BOOT, HW_REV_OFFSET, &hw_rev, 1); // LSB of device id -- cgit v1.2.3