Merge pull request #2477 from openmv/boot_desc_fix

bootloader: Fix string descriptor index.
This commit is contained in:
Ibrahim Abdelkader 2024-11-03 14:27:16 +02:00 committed by GitHub
commit 7d872ff6b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -121,7 +121,7 @@ uint16_t const *tud_descriptor_string_cb(uint8_t index, uint16_t langid) {
// Language ID
memcpy(desc_wstr, desc_string[0], 4);
return desc_wstr;
case 1: {
case 3: {
// Serial number
if (port_get_uid(uid) != 0) {
// No UID support.