BETAFPV / LiteRadio_PLUS

GNU General Public License v3.0
15 stars 14 forks source link

Update usbd_custom_hid_if.c #9

Open MouseOfMadness opened 1 year ago

MouseOfMadness commented 1 year ago

Fix for incorrect values. Looks like the two sections for slider inputs were copy/pasted and both ended up being identified with the same value 0x36 so changed the second to 0x37. All other axes had unique values from 0x30 to 0x35 so updated to be consistent. Also looks like the pointer values on lines 140 and 151 were also mistakenly set to 0x36 in the process. Corrected to match usage on lines 114 and 127 back to 0x01

Could be root cause of improper HID reporting on linux systems.

All other line changes result of github changing encoding on special characters.

liyouluo commented 1 year ago

This seems to work, thanks for your contribution.

Please check the attachment. LiteRadio_Plus_bin.zip