rename tud_configured() to mounted()
This commit is contained in:
@@ -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) )
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user