We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 144acfc commit aa1de69Copy full SHA for aa1de69
supervisor/shared/usb/usb.c
@@ -62,7 +62,7 @@ void load_serial_number(void) {
62
uint8_t raw_id[COMMON_HAL_MCU_PROCESSOR_UID_LENGTH];
63
common_hal_mcu_processor_get_uid(raw_id);
64
65
- usb_serial_number[0] = 0x300 | MP_ARRAY_SIZE(usb_serial_number);
+ usb_serial_number[0] = 0x300 | sizeof(usb_serial_number);
66
for (int i = 0; i < COMMON_HAL_MCU_PROCESSOR_UID_LENGTH; i++) {
67
for (int j = 0; j < 2; j++) {
68
uint8_t nibble = (raw_id[i] >> (j * 4)) & 0xf;
0 commit comments