Skip to content

Commit 13b302f

Browse files
committed
修正描述符错误:遗漏英文语言ID
1 parent 8a1399d commit 13b302f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/usblib/config/usb_desc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ const uint8_t USBD_StringLangID[USBD_SIZE_STRING_LANGID] = {
255255
0x04, 0x04, // LangID = 0x0404: Chinese (Traditional, Taiwan)
256256
0x04, 0x14, // LangID = 0x1404: Chinese (Traditional, Macau)
257257
0x11, 0x04, // LangID = 0x0411: Japanese (Japan)
258-
// 0x09, 0x04, // LangID = 0x0409: English (United States)
258+
0x09, 0x04, // LangID = 0x0409: English (United States)
259259
};
260260

261261
/* USB Device String Vendor */

src/usblib/config/usb_desc.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ extern "C" {
4848

4949
#define USBD_NUMOF_STRING_DESC 9
5050

51-
#define USBD_SIZE_STRING_LANGID 14
51+
#define USBD_SIZE_STRING_LANGID 16
5252
#define USBD_SIZE_STRING_VENDOR 10
5353
#define USBD_SIZE_STRING_PRODUCT 38
5454
#define USBD_SIZE_STRING_SERIAL 26

0 commit comments

Comments
 (0)