mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #20944 from maribu/sys/usbus/stable-ids
sys/usb: Use luid_base for stable USB serials
This commit is contained in:
commit
02e059546f
@ -422,7 +422,7 @@ static void *_usbus_thread(void *args)
|
||||
"USB serial byte length must be at most 63 due to protocol "
|
||||
"limitations");
|
||||
uint8_t luid_buf[CONFIG_USB_SERIAL_BYTE_LENGTH];
|
||||
luid_get(luid_buf, sizeof(luid_buf));
|
||||
luid_base(luid_buf, sizeof(luid_buf));
|
||||
fmt_bytes_hex(usbus->serial_str, luid_buf, sizeof(luid_buf));
|
||||
usbus_add_string_descriptor(usbus, &usbus->serial, usbus->serial_str);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user