diff options
| author | hathach <[email protected]> | 2013-07-05 13:37:57 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-07-05 13:37:57 +0700 |
| commit | 7345a4515db401d411fdb5d5db0665e1bc071f12 (patch) | |
| tree | c1849af88e7261644b84ce66f55108d228a8fe30 /tinyusb/class/cdc_host.c | |
| parent | 374aea7a11b6b9986318707f5951b9c69ad00239 (diff) | |
fix bug with rndis overshadow the normal cdc callback
Diffstat (limited to 'tinyusb/class/cdc_host.c')
| -rw-r--r-- | tinyusb/class/cdc_host.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tinyusb/class/cdc_host.c b/tinyusb/class/cdc_host.c index 0e97c5d9a..2b81b9ab6 100644 --- a/tinyusb/class/cdc_host.c +++ b/tinyusb/class/cdc_host.c @@ -204,8 +204,8 @@ tusb_error_t cdch_open_subtask(uint8_t dev_addr, tusb_descriptor_interface_t con { OSAL_SUBTASK_INVOKED_AND_WAIT( rndish_open_subtask(dev_addr, p_cdc), error ); } - else -// if ( TUSB_ERROR_NONE != error ) // device is not an rndis + + if ( !(0xff == p_cdc->interface_protocol && TUSB_ERROR_NONE == error) ) // device is not an rndis #endif // FIXME mounted class flag is not set yet |
