diff --git a/os/hal/src/hal_usb.c b/os/hal/src/hal_usb.c index 451b19aa4..b32bfc09f 100644 --- a/os/hal/src/hal_usb.c +++ b/os/hal/src/hal_usb.c @@ -125,6 +125,7 @@ static bool default_handler(USBDriver *usbp) { #endif return true; case (uint32_t)USB_RTYPE_RECIPIENT_DEVICE | ((uint32_t)USB_REQ_GET_DESCRIPTOR << 8): + case (uint32_t)USB_RTYPE_RECIPIENT_INTERFACE | ((uint32_t)USB_REQ_GET_DESCRIPTOR << 8): /* Handling descriptor requests from the host.*/ dp = usbp->config->get_descriptor_cb(usbp, usbp->setup[3], usbp->setup[2], diff --git a/readme.txt b/readme.txt index ca20c3aad..8b4754fd3 100644 --- a/readme.txt +++ b/readme.txt @@ -115,6 +115,8 @@ dependencies and configuration directories. This makes possible to have multiple non-conflicting makefiles in the same project. Updated the various platform.mk implementing "smart build" mode. +- HAL: Fixed USB GET_DESCRIPTOR not handled for Interface Recipients (bug #885) + (backported to 17.6.1 and 16.1.9). - HAL: Fixed error in uartReceiveTimeout() and uartSendTimeout() (bug #883) (backported to 17.6.1 and 16.1.9). - HAL: Fixed TIMx DBL field macro broken (bug #880)(backported