Skip to content

macOS: send report id conditionally for hid_get_feature_report - #70

Merged
Youw merged 2 commits into
masterfrom
macos-feature-report
Sep 24, 2019
Merged

Youw merged 2 commits into
masterfrom
macos-feature-report

Conversation

@Youw

@Youw Youw commented Sep 2, 2019

Copy link
Copy Markdown
Member

same as in hid_send_feature_report, and Windows/Linux

@Youw
Youw requested review from Qbicz and todbot September 2, 2019 09:43
Comment thread mac/hid.c Resolved
@Youw

Youw commented Sep 2, 2019

Copy link
Copy Markdown
Member Author

This will likely reference #60.

@DanielVanNoord, @micolous, please try if this works with your device(s).
It does with mine.

same as in hid_send_feature_report, and Windows/Linux
@Youw
Youw force-pushed the macos-feature-report branch from e966f66 to 47b042c Compare September 2, 2019 09:48
@Youw

Youw commented Sep 21, 2019

Copy link
Copy Markdown
Member Author

@DanielVanNoord, @micolous ping

hidapi team, your opinion/feedback is needed
with all my local tests, this implementation looks best and consistent with other systems

@z3ntu, you have originally propagated #3, so you feedback is appreciated too

@z3ntu

z3ntu commented Sep 22, 2019

Copy link
Copy Markdown
Collaborator

Apparently the devices I use hidapi with, don't use numbered reports. I'll test this PR tomorrow if it works with my application!

@Youw

Youw commented Sep 22, 2019

Copy link
Copy Markdown
Member Author

Thanks.
The device I use, does use numbered reports, and #3 did broke my app (as I mentioned earlier, I didn't notice that, since I have my own fork with my own patches).

If this works for you, I think we will accept it this was.

@z3ntu

z3ntu commented Sep 23, 2019

Copy link
Copy Markdown
Collaborator

Works fine for my use case 👍

@Youw

Youw commented Sep 23, 2019

Copy link
Copy Markdown
Member Author

@Qbicz, if you don't have comments regarding the implementation, I'd like to merge this ASAP

@DanielVanNoord

Copy link
Copy Markdown
Contributor

@Youw I'll grab a Mac and test it with my devices that use report ids today. Will let you know the results as soon as I can.

@Qbicz

Qbicz commented Sep 23, 2019 •

Copy link
Copy Markdown
Member

@Youw it looks good to me. I don't have a Mac setup so I didn't notice the problem before.

Let's wait for @DanielVanNoord test result.

@Youw

Youw commented Sep 23, 2019

Copy link
Copy Markdown
Member Author

meanwhile found bug in my own implementation
nothing conceptually changes though

@DanielVanNoord

Copy link
Copy Markdown
Contributor

Ran some quick tests on a Mac with a device that uses feature report ids and everything seems to be working.

@Youw

Youw commented Sep 24, 2019

Copy link
Copy Markdown
Member Author

great, we have a winner here

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

Labels

macOS Related to macOS backend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants