Skip to content
Commit b613864c authored by Aurelien Jarno's avatar Aurelien Jarno Committed by Anas Nashif
Browse files

usb: class: dfu: fix USB descriptors in composite mode



In composite mode the request handler buffer is common to all functions,
and its size is defined by CONFIG_USB_COMPOSITE_BUFFER_SIZE.

Given the device is enumerated as composite in runtime mode and
as legacy in download mode, we need to define wTransferSize as
the minimum of the two.

Signed-off-by: default avatarAurelien Jarno <aurelien@aurel32.net>
parent ef2871de
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment