modify keyboard macro

This commit is contained in:
sakumisu
2022-08-18 21:49:15 +08:00
parent 6e29b6a427
commit 41239fa43f
2 changed files with 2 additions and 2 deletions

View File

@@ -227,7 +227,7 @@ void hid_custom_keyboard_init(void)
void hid_custom_test(void)
{
uint8_t sendbuffer[64] = { 0x00, 0x00, HID_KEY_A, 0x00, 0x00, 0x00, 0x00, 0x00 };
uint8_t sendbuffer[64] = { 0x00, 0x00, HID_KBD_USAGE_A, 0x00, 0x00, 0x00, 0x00, 0x00 };
custom_state = HID_STATE_BUSY;
usbd_ep_start_write(HIDRAW_IN_EP, sendbuffer, 8);
while (custom_state == HID_STATE_BUSY) {

View File

@@ -213,7 +213,7 @@ void hid_keyboard_init(void)
void hid_keyboard_test(void)
{
uint8_t sendbuffer[8] = { 0x00, 0x00, HID_KEY_A, 0x00, 0x00, 0x00, 0x00, 0x00 }; //A
uint8_t sendbuffer[8] = { 0x00, 0x00, HID_KBD_USAGE_A, 0x00, 0x00, 0x00, 0x00, 0x00 }; //A
hid_state = HID_STATE_BUSY;
usbd_ep_start_write(HID_INT_EP, sendbuffer, 8);
while (hid_state == HID_STATE_BUSY) {