diff --git a/ports/stm32f4/supervisor/internal_flash.c b/ports/stm32f4/supervisor/internal_flash.c index fd3241bd6a..953fa14393 100644 --- a/ports/stm32f4/supervisor/internal_flash.c +++ b/ports/stm32f4/supervisor/internal_flash.c @@ -1,4 +1,4 @@ -/*f +/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) diff --git a/supervisor/shared/usb/usb.c b/supervisor/shared/usb/usb.c index b0880b1b62..0678a3a3fc 100644 --- a/supervisor/shared/usb/usb.c +++ b/supervisor/shared/usb/usb.c @@ -34,7 +34,6 @@ #include "tusb.h" - // Serial number as hex characters. This writes directly to the USB // descriptor. extern uint16_t usb_serial_number[1 + COMMON_HAL_MCU_PROCESSOR_UID_LENGTH * 2]; @@ -43,9 +42,6 @@ void load_serial_number(void) { // create serial number based on device unique id uint8_t raw_id[COMMON_HAL_MCU_PROCESSOR_UID_LENGTH]; common_hal_mcu_processor_get_uid(raw_id); - for (int i=0; i<2; i++) { - ((uint32_t*) raw_id)[i] = 0; - } static const char nibble_to_hex[16] = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'}; diff --git a/supervisor/stub/internal_flash.c b/supervisor/stub/internal_flash.c index 334281e77f..eb1f4a106f 100644 --- a/supervisor/stub/internal_flash.c +++ b/supervisor/stub/internal_flash.c @@ -1,4 +1,4 @@ -/*f +/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT)