From c8b7bc7bd56219556820b7f310a5a0e96504b7ed Mon Sep 17 00:00:00 2001 From: wangyz1997 Date: Mon, 16 Sep 2024 17:11:47 +0800 Subject: [PATCH] mihome_bridge: fix typo --- mihome_bridge/Core/Src/hid_keyboard_mouse.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mihome_bridge/Core/Src/hid_keyboard_mouse.c b/mihome_bridge/Core/Src/hid_keyboard_mouse.c index 12a3d88..f6c2efd 100644 --- a/mihome_bridge/Core/Src/hid_keyboard_mouse.c +++ b/mihome_bridge/Core/Src/hid_keyboard_mouse.c @@ -17,7 +17,7 @@ #define HID_KM_INT_EP_INTERVAL 10 #define HID_CONFIG_DESCRIPTOR_SIZE 34 -#define HID_KM_REPORT_DESC_SIZE 187 +#define HID_KM_REPORT_DESC_SIZE 185 static const uint8_t hid_descriptor[] = { /* 设备(Device)描述符 所有设备有且只有一个 */ @@ -185,7 +185,6 @@ static const uint8_t hid_km_report_desc[HID_KM_REPORT_DESC_SIZE] = { 0x81, 0x01, // Input (Const,Array,Abs,No Wrap,Linear,Preferred State,No Null Position) 0xC0, // End Collection - 0x05, 0x01, // Usage Page (Generic Desktop Ctrls) 0x05, 0x01, // Usage Page (Generic Desktop Ctrls) 0x09, 0x02, // Usage (Mouse) 0xA1, 0x01, // Collection (Application)