diff options
| author | Hierophect <hierophect@gmail.com> | 2019-08-15 16:35:01 -0400 |
|---|---|---|
| committer | Hierophect <hierophect@gmail.com> | 2019-08-15 16:35:01 -0400 |
| commit | bc7ba33892cae88ffd1b42dfa45868057a4934e8 (patch) | |
| tree | 985200e1272933e5ba8dae41530ece8b803eca34 /supervisor | |
| parent | a9d3ad86e5f400b9315fde58c9b8666a048956ca (diff) | |
Add uid fetch, revert USB hacks
Diffstat (limited to 'supervisor')
| -rw-r--r-- | supervisor/shared/usb/usb.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/supervisor/shared/usb/usb.c b/supervisor/shared/usb/usb.c index cfb39d4bb..b0880b1b6 100644 --- a/supervisor/shared/usb/usb.c +++ b/supervisor/shared/usb/usb.c @@ -34,7 +34,6 @@ #include "tusb.h" -#define COMMON_HAL_MCU_PROCESSOR_UID_LENGTH 8 // Serial number as hex characters. This writes directly to the USB // descriptor. @@ -43,7 +42,7 @@ extern uint16_t usb_serial_number[1 + COMMON_HAL_MCU_PROCESSOR_UID_LENGTH * 2]; 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); + common_hal_mcu_processor_get_uid(raw_id); for (int i=0; i<2; i++) { ((uint32_t*) raw_id)[i] = 0; } |
