summaryrefslogtreecommitdiff
path: root/examples/obsolete
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-07-24 18:18:02 +0700
committerhathach <[email protected]>2018-07-24 18:18:02 +0700
commit17369cfda0f077c29eea1f7ab486d60167511f36 (patch)
treeef7fd0ee5766759ef0382f55be06dfc470c65f28 /examples/obsolete
parentbd2313aa8bbc81eeff03e4b5b66054ad285214ee (diff)
change tud_hid_keyboard_busy() to tud_hid_keyboard_ready() for positive meaning
Diffstat (limited to 'examples/obsolete')
-rw-r--r--examples/obsolete/device/src/keyboard_device_app.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/obsolete/device/src/keyboard_device_app.c b/examples/obsolete/device/src/keyboard_device_app.c
index 4e4de8996..4bb25b9c0 100644
--- a/examples/obsolete/device/src/keyboard_device_app.c
+++ b/examples/obsolete/device/src/keyboard_device_app.c
@@ -128,7 +128,7 @@ tusb_error_t keyboard_device_subtask(void)
osal_task_delay(50);
- if ( tud_mounted() && !tud_hid_keyboard_busy(0) )
+ if ( tud_mounted() && tud_hid_keyboard_ready(0) )
{
static uint32_t button_mask = 0;
uint32_t new_button_mask = board_buttons();