mirror of
https://github.com/ArteryTek/AT32F415_Firmware_Library.git
synced 2026-05-21 01:12:20 +00:00
update version to v2.1.2
This commit is contained in:
@@ -101,6 +101,20 @@ static usb_sts_type usbd_get_descriptor(usbd_core_type *udev)
|
||||
case USB_INTERFACE_STRING:
|
||||
desc = udev->desc_handler->get_device_interface_string();
|
||||
break;
|
||||
case USB_WINUSB_OS_STRING:
|
||||
#if (USBD_SUPPORT_WINUSB == 1)
|
||||
if(udev->desc_handler->get_device_winusb_os_string != NULL)
|
||||
{
|
||||
desc = udev->desc_handler->get_device_winusb_os_string();
|
||||
}
|
||||
else
|
||||
{
|
||||
usbd_ctrl_unsupport(udev);
|
||||
}
|
||||
#else
|
||||
usbd_ctrl_unsupport(udev);
|
||||
#endif
|
||||
break;
|
||||
default:
|
||||
udev->class_handler->setup_handler(udev, &udev->setup);
|
||||
return ret;
|
||||
@@ -244,6 +258,10 @@ static usb_sts_type usbd_set_feature(usbd_core_type *udev)
|
||||
udev->class_handler->setup_handler(udev, &udev->setup);
|
||||
usbd_ctrl_send_status(udev);
|
||||
}
|
||||
else
|
||||
{
|
||||
usbd_ctrl_unsupport(udev);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user