diff options
| author | hathach <[email protected]> | 2019-04-18 13:24:07 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2019-04-18 13:27:06 +0700 |
| commit | a30461b078445ab2d11319fade47789ecc866b7d (patch) | |
| tree | 7008b3b766561ee9aaeb7eabe5fdad6ecb269b11 /examples/device/cdc_msc_hid | |
| parent | 8d2db4dd70c37bac426839717f9355da21d30c4c (diff) | |
update tud_hid_keyboard/mouse helper
Diffstat (limited to 'examples/device/cdc_msc_hid')
| -rw-r--r-- | examples/device/cdc_msc_hid/src/main.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/device/cdc_msc_hid/src/main.c b/examples/device/cdc_msc_hid/src/main.c index 1a431b765..4b82dfd86 100644 --- a/examples/device/cdc_msc_hid/src/main.c +++ b/examples/device/cdc_msc_hid/src/main.c @@ -153,11 +153,10 @@ void usb_hid_task(void) uint8_t keycode[6] = { 0 }; keycode[0] = HID_KEY_A; - tud_hid_keyboard_keycode(0, keycode); + tud_hid_keyboard_report(0, 0, keycode); }else { - // Null means all zeroes keycodes - tud_hid_keyboard_keycode(0, NULL); + tud_hid_keyboard_key_release(0); } } #endif |
