Skip to content

Commit

Permalink
Fix invalid translation for URB_SHORT_NOT_OK
Browse files Browse the repository at this point in the history
usbd flag translation for URB_SHORT_NOT_OK has been fixed as suggested
in cezanne#251.
  • Loading branch information
cezanne committed Jul 19, 2021
1 parent c0e4fca commit c3bde8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion driver/lib/usbd_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ to_usbd_flags(int flags)
{
ULONG usbd_flags = 0;

if (flags & URB_SHORT_NOT_OK)
if (!(flags & URB_SHORT_NOT_OK))
usbd_flags |= USBD_SHORT_TRANSFER_OK;
if (flags & URB_ISO_ASAP)
usbd_flags |= USBD_START_ISO_TRANSFER_ASAP;
Expand Down

0 comments on commit c3bde8c

Please sign in to comment.