Closed kareltucek closed 7 months ago
@benedekkupper Please take a look and let us know if this fix is correct.
Noone needs to look into the USB machinery, it's sufficient to look at the code. This line fixes the count
field of usb_device_interfaces_struct_t
, which should be set by the array size of what's set at the interface
field. The interface has usb_device_interface_struct_t*
type, so does g_hid_generic_interface
. The fix is correct. (Whether this bug was patched somewhere else to make the whole system operational at the end is another question, one that I cannot answer so easily.)
Compiler throws:
Following fix seems to makes sense. UHK seems to work fine like this, but to tell the truth I am not entirely sure that the fix is correct, as I don't see much into the usb machinery.