summaryrefslogtreecommitdiff
path: root/examples/device/cdc_msc_hid_freertos
diff options
context:
space:
mode:
authorhathach <[email protected]>2019-04-18 13:24:07 +0700
committerhathach <[email protected]>2019-04-18 13:27:06 +0700
commita30461b078445ab2d11319fade47789ecc866b7d (patch)
tree7008b3b766561ee9aaeb7eabe5fdad6ecb269b11 /examples/device/cdc_msc_hid_freertos
parent8d2db4dd70c37bac426839717f9355da21d30c4c (diff)
update tud_hid_keyboard/mouse helper
Diffstat (limited to 'examples/device/cdc_msc_hid_freertos')
-rw-r--r--examples/device/cdc_msc_hid_freertos/src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/device/cdc_msc_hid_freertos/src/main.c b/examples/device/cdc_msc_hid_freertos/src/main.c
index 626f7dc45..2014fb1a4 100644
--- a/examples/device/cdc_msc_hid_freertos/src/main.c
+++ b/examples/device/cdc_msc_hid_freertos/src/main.c
@@ -172,11 +172,11 @@ void usb_hid_task(void* params)
if ( btn & (1 << i) ) keycode[i] = HID_KEY_A + i;
}
- tud_hid_keyboard_keycode(0, keycode);
+ tud_hid_keyboard_report(0, keycode);
}else
{
// Null means all zeroes keycodes
- tud_hid_keyboard_keycode(0, NULL);
+ tud_hid_keyboard_report(0, NULL);
}
}