Skip to content

Update usbd_custom_hid_if.c - #9

Open
MouseOfMadness wants to merge 1 commit into
BETAFPV:mainfrom
MouseOfMadness:patch-1
Open

Update usbd_custom_hid_if.c#9
MouseOfMadness wants to merge 1 commit into
BETAFPV:mainfrom
MouseOfMadness:patch-1

Conversation

@MouseOfMadness

Copy link
Copy Markdown

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.

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. 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

Could be root cause of improper HID reporting on linux systems
@liyouluo

Copy link
Copy Markdown

This seems to work, thanks for your contribution.

Please check the attachment.
LiteRadio_Plus_bin.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants