Simplify USB_DeviceCallback() and its surroundings.

This commit is contained in:
László Monda
2016-02-25 18:20:35 +01:00
parent 7e89132fd8
commit 9e52743ba0
3 changed files with 49 additions and 79 deletions

View File

@@ -165,7 +165,7 @@ uint8_t UsbManufacturerString[USB_MANUFACTURER_STRING_DESCRIPTOR_LENGTH] = {
'.', 0x00U,
};
uint8_t UsbProductString[USB_DESCRIPTOR_LENGTH_STRING2] = {
uint8_t UsbProductString[USB_PRODUCT_STRING_DESCRIPTOR_LENGTH] = {
sizeof(UsbProductString),
USB_DESCRIPTOR_TYPE_STRING,
'C', 0x00U,