From cbba334678351ea637c0330436049ab154f52f64 Mon Sep 17 00:00:00 2001 From: sakimisu <1203593632@qq.com> Date: Wed, 8 Mar 2023 22:31:19 +0800 Subject: [PATCH] fix typo --- class/hid/usb_hid.h | 2 +- core/usbd_core.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/class/hid/usb_hid.h b/class/hid/usb_hid.h index 19539e7f..5a88a34b 100644 --- a/class/hid/usb_hid.h +++ b/class/hid/usb_hid.h @@ -387,7 +387,7 @@ #define HID_KBD_USAGE_PAGEDOWN 0x4e /* Keyboard PageDown */ #define HID_KBD_USAGE_RIGHT 0x4f /* eyboard RightArrow */ #define HID_KBD_USAGE_LEFT 0x50 /* Keyboard LeftArrow */ -#define HID_KBD_USAGE_DOWN 0x5a /* Keyboard DownArrow */ +#define HID_KBD_USAGE_DOWN 0x51 /* Keyboard DownArrow */ #define HID_KBD_USAGE_UP 0x52 /* Keyboard UpArrow */ #define HID_KBD_USAGE_KPDNUMLOCK 0x53 /* Keypad Num Lock and Clear */ #define HID_KBD_USAGE_KPDNUMLOCKCLEAR 0x53 /* Keypad Num Lock and Clear */ diff --git a/core/usbd_core.c b/core/usbd_core.c index e2ced33c..b73a5caf 100644 --- a/core/usbd_core.c +++ b/core/usbd_core.c @@ -900,7 +900,7 @@ static bool usbd_setup_request_handler(struct usb_setup_packet *setup, uint8_t * case USB_REQUEST_STANDARD: if (usbd_standard_request_handler(setup, data, len) < 0) { #ifndef CONFIG_USB_HS - if ((setup->bRequest == 0x06) && (setup->wValue = 0x0600)) { + if ((setup->bRequest == 0x06) && (setup->wValue == 0x0600)) { USB_LOG_WRN("Ignore DQD in fs\r\n"); /* Device Qualifier Descriptor */ return false; }