Skip to content

CDCh tuh_cdc_mounted() returns true before process config is completed (also HIDh?) #2437

@IngHK

Description

@IngHK

Operating System

Others

Board

Firmware

What happened ?

If an application uses tuh_cdc_mounted() to check whether a CDC device is mounted, it will be reported "true" before the process config is completed.
The application could then disrupt the process config or the application would not yet be able to work with the CDC device.
tuh_cdc_mount_cb() is correctly called in set_config_complete() after the process config has been completed.
the hid host may have the same issue...

How to reproduce ?

Debug Log as txt file (LOG/CFG_TUSB_DEBUG=2)

Screenshots

No response

I have checked existing issues, dicussion and documentation

  • I confirm I have checked existing issues, dicussion and documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions