USB_UDE_Sample icon indicating copy to clipboard operation
USB_UDE_Sample copied to clipboard

UDEFX2: Replace hardcoded USB descriptor sizes with sizeof(..)

Open forderud opened this issue 10 months ago • 3 comments

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): image image image

forderud avatar Apr 05 '24 07:04 forderud

@xxandy Would it be possible for you to consider this PR?

forderud avatar Jun 06 '24 14:06 forderud

@xxandy Would it be possible for you to consider this PR?

forderud avatar Aug 02 '24 12:08 forderud