summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHierophect <hierophect@gmail.com>2019-08-15 17:56:15 -0400
committerHierophect <hierophect@gmail.com>2019-08-15 17:56:15 -0400
commit7dbf1a8caaebf15a634930b1b3e7f3bdc559a180 (patch)
treecd00b3fd5d91797c2ac46d026169dc4064a38a8e
parent1f42ce5f4000d630da5cb744c2a61a69a8d7a0e8 (diff)
text fixes
-rw-r--r--ports/stm32f4/supervisor/internal_flash.c2
-rw-r--r--supervisor/shared/usb/usb.c4
-rw-r--r--supervisor/stub/internal_flash.c2
3 files changed, 2 insertions, 6 deletions
diff --git a/ports/stm32f4/supervisor/internal_flash.c b/ports/stm32f4/supervisor/internal_flash.c
index fd3241bd6..953fa1439 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 b0880b1b6..0678a3a3f 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 334281e77..eb1f4a106 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)