tusb_xinput
tusb_xinput copied to clipboard
Init should return a bool
The init function should return a bool (and probably false if it failed to init).
This is currently not checked in usbh.c, so it currently doesn't hurt. But in the future it may be checked and cause your driver to fail loading.
Also, please mark unused parameters like the rhport in open as unused like adding "(void) rhport;" to the begin of the function.
Other than that: The driver works for me :-) Thanks a lot!