Browse Source

fix:键盘最大为255

alienwalker 4 years ago
parent
commit
defcf2263f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      bsp/common/src/core_usb_app.c

+ 1 - 1
bsp/common/src/core_usb_app.c

@@ -425,7 +425,7 @@ static const char prvCore_HIDKeyboardReportDesc[64] = {
 	    0x95, 0x06,                    //   REPORT_COUNT (6)
 	    0x75, 0x08,                    //   REPORT_SIZE (8)
 	    0x15, 0x00,                    //   LOGICAL_MINIMUM (0)
-	    0x26, 0x00, 0xff,             	  //   LOGICAL_MAXIMUM (255)
+	    0x26, 0xff, 0x00,             	  //   LOGICAL_MAXIMUM (255)
 	    0x05, 0x07,                    //   USAGE_PAGE (Keyboard)
 	    0x19, 0x00,                    //   USAGE_MINIMUM (Reserved (no event indicated))
 	    0x29, 0x65,                    //   USAGE_MAXIMUM (Keyboard Application)