We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f85a19 commit 31d18c5Copy full SHA for 31d18c5
1 file changed
ports/alif/usbd.c
@@ -30,10 +30,11 @@
30
31
#include "shared/tinyusb/mp_usbd.h"
32
#include "tusb.h"
33
+#include "se_services.h"
34
35
void mp_usbd_port_get_serial_number(char *serial_buf) {
- // TODO
36
- uint8_t id[8] = "ABCDEFGH";
+ uint8_t id[5];
37
+ se_services_get_unique_id(id);
38
MP_STATIC_ASSERT(sizeof(id) * 2 <= MICROPY_HW_USB_DESC_STR_MAX);
39
mp_usbd_hex_str(serial_buf, id, sizeof(id));
40
}
0 commit comments