Skip to content
Commit d39d7e5c authored by Tomasz Moń's avatar Tomasz Moń Committed by Benjamin Cabé
Browse files

usb: device_next: Fail enqueue on disabled endpoints



Do not allow enqueuing buffers on endpoints that were not enabled. Doing
so can lead to division by zero later on because the max packet size can
be 0 in disabled endpoint configuration.

Signed-off-by: default avatarTomasz Moń <tomasz.mon@nordicsemi.no>
parent 9006780d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment