summaryrefslogtreecommitdiff
path: root/src/class/cdc
diff options
context:
space:
mode:
authorhathach <[email protected]>2019-03-30 23:01:23 +0700
committerhathach <[email protected]>2019-03-30 23:01:23 +0700
commiteabfc53f38dc538b44615aed32db66484a3acca4 (patch)
treee1ad77937c1ed4b2f3d81636d4f94fe2d25647e3 /src/class/cdc
parentf3a954e7deaa33db5fed8e807cd146e65aaeb104 (diff)
added tud_suspended() and tud_ready()
Diffstat (limited to 'src/class/cdc')
-rw-r--r--src/class/cdc/cdc_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/class/cdc/cdc_device.c b/src/class/cdc/cdc_device.c
index 7b8f1bf72..c194aacd8 100644
--- a/src/class/cdc/cdc_device.c
+++ b/src/class/cdc/cdc_device.c
@@ -99,7 +99,7 @@ static void _prep_out_transaction (uint8_t itf)
bool tud_cdc_n_connected(uint8_t itf)
{
// DTR (bit 0) active is considered as connected
- return tud_mounted() && TU_BIT_TEST(_cdcd_itf[itf].line_state, 0);
+ return tud_ready() && TU_BIT_TEST(_cdcd_itf[itf].line_state, 0);
}
uint8_t tud_cdc_n_get_line_state (uint8_t itf)