USBD_CUSTOM_HID_REPORT_DESC_SIZE less than actual defined Report Descriptor
I'm porting some fully functional older CMSIS firmware to STMCube and TrueStudio. The old report is 363 bytes which compiles, but Windows Device Manager detects an error in the Report Descriptor. After some tinkering, setting USBD_CUSTOM_HID_REPORT_DESC_SIZE to 361 solved the problem, and the Device Manager error disappeared with the device correctly identified.
I suspect its related to the __ALIGN_END macro (== aligned(4)). Values of 362 fail, and 360 gives expected compile errors.
Looking at the USB HID mouse/kbd sample app, its Report Descriptor is 74 bytes, and it does not have the problem.
Anyone have some ideas why USBD_CUSTOM_HID_REPORT_DESC_SIZE has to be 2 bytes less that the actual size?
