tusb_xinput icon indicating copy to clipboard operation
tusb_xinput copied to clipboard

Init should return a bool

Open harbaum opened this issue 1 year ago • 0 comments

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!

harbaum avatar Jun 20 '24 11:06 harbaum