From 6b80a1a61e1c55b5da2f83cf91bc1e4d03f9be2c Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Mon, 28 Oct 2024 14:50:42 +0100 Subject: [PATCH] sys/usb: Use luid_base for stable USB serials This is useful when having multiple instances of the same board connected via USB CDC ACM and telling the TTYs apart. --- sys/usb/usbus/usbus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/usb/usbus/usbus.c b/sys/usb/usbus/usbus.c index db38ca923e..9dd3dedbec 100644 --- a/sys/usb/usbus/usbus.c +++ b/sys/usb/usbus/usbus.c @@ -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