summaryrefslogtreecommitdiff
path: root/demos/device/src
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-03-01 23:43:03 +0700
committerhathach <[email protected]>2018-03-01 23:43:03 +0700
commit0afa0ce4ccf493e7684c753ab0af2411eb198f14 (patch)
tree00ffd94382e06383cd5d71a20701fcb27a62016f /demos/device/src
parent04cace7619596377b38914c375b424b9884e4baa (diff)
rename tud_configured() to mounted()
Diffstat (limited to 'demos/device/src')
-rw-r--r--demos/device/src/cdc_device_app.c2
-rw-r--r--demos/device/src/keyboard_device_app.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/demos/device/src/cdc_device_app.c b/demos/device/src/cdc_device_app.c
index 8059b938d..d8491d87b 100644
--- a/demos/device/src/cdc_device_app.c
+++ b/demos/device/src/cdc_device_app.c
@@ -139,7 +139,7 @@ tusb_error_t cdcd_serial_subtask(void)
osal_semaphore_wait(sem_hdl, OSAL_TIMEOUT_WAIT_FOREVER, &error);
(void) error; // suppress compiler's warnings
- if ( tud_configured(0) )
+ if ( tud_mounted(0) )
{
// echo back data in the fifo
if ( !tud_cdc_busy(0, CDC_PIPE_DATA_IN) )
diff --git a/demos/device/src/keyboard_device_app.c b/demos/device/src/keyboard_device_app.c
index 14f0611fa..61e42f99d 100644
--- a/demos/device/src/keyboard_device_app.c
+++ b/demos/device/src/keyboard_device_app.c
@@ -126,7 +126,7 @@ tusb_error_t keyboard_device_subtask(void)
osal_task_delay(50);
- if ( tud_configured(0) && !tud_hid_keyboard_busy(0) )
+ if ( tud_mounted(0) && !tud_hid_keyboard_busy(0) )
{
static uint32_t button_mask = 0;
uint32_t new_button_mask = board_buttons();