diff options
| author | hathach <[email protected]> | 2018-07-23 22:30:24 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-07-23 22:30:24 +0700 |
| commit | 176607dbe16207a3d2d46e9674ae15a995406478 (patch) | |
| tree | 4ee423c5515506cb5a94f447f7cca5ffb8ec701d | |
| parent | 3e209f9c20c9251e01af35da4d9e454fcc2f61dd (diff) | |
rename tud_hid_mouse_is_busy to tud_hid_mouse_busy
| -rw-r--r-- | examples/device/nrf52840/src/main.c | 3 | ||||
| -rw-r--r-- | src/class/hid/hid_device.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/examples/device/nrf52840/src/main.c b/examples/device/nrf52840/src/main.c index 1993109b4..04d07f0a6 100644 --- a/examples/device/nrf52840/src/main.c +++ b/examples/device/nrf52840/src/main.c @@ -56,6 +56,7 @@ void print_greeting(void); void led_blinking_task(void); void virtual_com_task(void); +void usb_hid_task(void); /*------------- MAIN -------------*/ int main(void) @@ -71,6 +72,8 @@ int main(void) led_blinking_task(); virtual_com_task(); + + usb_hid_task(); } return 0; diff --git a/src/class/hid/hid_device.c b/src/class/hid/hid_device.c index f2d89250c..325485425 100644 --- a/src/class/hid/hid_device.c +++ b/src/class/hid/hid_device.c @@ -163,7 +163,7 @@ bool tud_hid_keyboard_send_string(const char* str, uint32_t interval_ms) // MOUSE APPLICATION API
//--------------------------------------------------------------------+
#if CFG_TUD_HID_MOUSE
-bool tud_hid_mouse_is_busy(void)
+bool tud_hid_mouse_busy(void)
{
return dcd_edpt_busy(TUD_OPT_RHPORT, _mse_itf.ep_in);
}
|
