From 0afa0ce4ccf493e7684c753ab0af2411eb198f14 Mon Sep 17 00:00:00 2001 From: hathach Date: Thu, 1 Mar 2018 23:43:03 +0700 Subject: rename tud_configured() to mounted() --- demos/device/src/cdc_device_app.c | 2 +- demos/device/src/keyboard_device_app.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'demos/device/src') 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(); -- cgit v1.3.1