diff options
| author | hathach <[email protected]> | 2019-03-30 23:01:23 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2019-03-30 23:01:23 +0700 |
| commit | eabfc53f38dc538b44615aed32db66484a3acca4 (patch) | |
| tree | e1ad77937c1ed4b2f3d81636d4f94fe2d25647e3 /src/class | |
| parent | f3a954e7deaa33db5fed8e807cd146e65aaeb104 (diff) | |
added tud_suspended() and tud_ready()
Diffstat (limited to 'src/class')
| -rw-r--r-- | src/class/cdc/cdc_device.c | 2 |
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)
|
