summaryrefslogtreecommitdiff
path: root/src/host
diff options
context:
space:
mode:
authorJerzy Kasenberg <[email protected]>2022-08-09 09:53:08 +0200
committerJerzy Kasenberg <[email protected]>2022-08-09 10:42:30 +0200
commitc7469ce986b495ccd3777e542df31bd90f4134f2 (patch)
tree87bc3e7ae22831906d46cd6ddedf6869aedcf98f /src/host
parent251ce9899039fbdf8e749342bc6504e7438d2e88 (diff)
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.
Diffstat (limited to 'src/host')
0 files changed, 0 insertions, 0 deletions