diff options
| author | hathach <[email protected]> | 2018-07-24 18:18:02 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-07-24 18:18:02 +0700 |
| commit | 17369cfda0f077c29eea1f7ab486d60167511f36 (patch) | |
| tree | ef7fd0ee5766759ef0382f55be06dfc470c65f28 /examples/obsolete | |
| parent | bd2313aa8bbc81eeff03e4b5b66054ad285214ee (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.c | 2 |
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(); |
