From a73a901ae545d172ccf8bc63289394928c5e960c Mon Sep 17 00:00:00 2001 From: KyungWoon Cho Date: Fri, 16 Jul 2021 18:18:40 +0900 Subject: [PATCH] Fix invalid translation for URB_SHORT_NOT_OK usbd flag translation for URB_SHORT_NOT_OK has been fixed as suggested in #251. --- driver/lib/usbd_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver/lib/usbd_helper.c b/driver/lib/usbd_helper.c index c9168eaa..5687725b 100644 --- a/driver/lib/usbd_helper.c +++ b/driver/lib/usbd_helper.c @@ -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;