USB_UDE_Sample
USB_UDE_Sample copied to clipboard
UDEFX2: Replace hardcoded USB descriptor sizes with sizeof(..)
Done to reduce the a amount of "magic" values in the implementation, and make the code easier to follow. Also, remove g_UsbDeviceDescriptor
from header, since it's not references in any other source file.
Visual evidence that it's safe to replace 0x9
, 0x9
and 0x7
with sizeof(..)
: (Visual Studio tooltips):
@xxandy Would it be possible for you to consider this PR?
@xxandy Would it be possible for you to consider this PR?