Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dfu: Allow DFU coexistence with other interfaces (BTH, RNDIS, future one) #1597

Merged
merged 1 commit into from Aug 10, 2022

Commits on Aug 9, 2022

  1. dfu: Allow DFU coexistence with other interfaces

    dfu_moded_open() only works correct when its called on DFU interface
    descriptor. It means that DFU is the only one interface in configuration
    or driver is called after all others interface drivers were tried and
    gave up.
    
    If other interface is supported and but driver for DFU is called first
    (this is the case for BTH and RNDIS).
    Code after while loop (that was not entered) has an TU_ASSERT that will
    make set_configuration to fail.
    
    Now TU_VERIFY is called first to make sure open code is called for DFU
    only and not other interface descriptors like in other drivers.
    kasjer committed Aug 9, 2022
    Configuration menu
    Copy the full SHA
    c7469ce View commit details
    Browse the repository at this point in the history