diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/fx2/b100/usb_descriptors.a51 | 3 | ||||
-rw-r--r-- | firmware/fx2/b100/usrp_main.c | 6 |
2 files changed, 5 insertions, 4 deletions
diff --git a/firmware/fx2/b100/usb_descriptors.a51 b/firmware/fx2/b100/usb_descriptors.a51 index 169aea4fd..5365de840 100644 --- a/firmware/fx2/b100/usb_descriptors.a51 +++ b/firmware/fx2/b100/usb_descriptors.a51 @@ -452,7 +452,8 @@ _usb_desc_serial_number_ascii:: .db '1, 0 .db '5, 0 .db '9, 0 - .db '3, 0 + .db '2, 0 + .db '7, 0 str6_end: SI_FPGA_COMMAND_OUT_PATH = 7 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 |