macOS: send report id conditionally for hid_get_feature_report #70

Merged
Youw merged 2 commits from macos-feature-report into master 2019-09-24 05:35:00 -05:00
Youw commented 2019-09-02 04:43:39 -05:00 (Migrated from github.com)

same as in hid_send_feature_report, and Windows/Linux

same as in hid_send_feature_report, and Windows/Linux
todbot (Migrated from github.com) reviewed 2019-09-02 04:43:39 -05:00
vitalys (Migrated from github.com) reviewed 2019-09-02 04:46:34 -05:00
@ -763,38 +763,64 @@ return_error:
vitalys (Migrated from github.com) commented 2019-09-02 04:46:34 -05:00

Probably it has to be dev->disconnected

Probably it has to be `dev->disconnected`
Youw commented 2019-09-02 04:47:35 -05:00 (Migrated from github.com)

This will likely reference https://github.com/libusb/hidapi/issues/60.

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

This will likely reference https://github.com/libusb/hidapi/issues/60. @DanielVanNoord, @micolous, please try if this works with your device(s). It does with mine.
Youw (Migrated from github.com) reviewed 2019-09-02 04:48:50 -05:00
@ -763,38 +763,64 @@ return_error:
Youw (Migrated from github.com) commented 2019-09-02 04:48:50 -05:00

thanks)

thanks)
Youw commented 2019-09-21 09:46:53 -05:00 (Migrated from github.com)

@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

@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 commented 2019-09-22 14:34:03 -05:00 (Migrated from github.com)

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

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 commented 2019-09-22 18:08:58 -05:00 (Migrated from github.com)

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.

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 commented 2019-09-23 03:14:04 -05:00 (Migrated from github.com)

Works fine for my use case 👍

Works fine for my use case :+1:
Youw commented 2019-09-23 05:42:14 -05:00 (Migrated from github.com)

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

@Qbicz, if you don't have comments regarding the implementation, I'd like to merge this ASAP
DanielVanNoord commented 2019-09-23 05:49:33 -05:00 (Migrated from github.com)

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

@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 commented 2019-09-23 06:37:53 -05:00 (Migrated from github.com)

@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 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.
Qbicz (Migrated from github.com) approved these changes 2019-09-23 06:38:03 -05:00
Youw commented 2019-09-23 06:52:36 -05:00 (Migrated from github.com)

meanwhile found bug in my own implementation
nothing conceptually changes though

meanwhile found bug in my own implementation nothing conceptually changes though
DanielVanNoord commented 2019-09-23 09:57:53 -05:00 (Migrated from github.com)

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

Ran some quick tests on a Mac with a device that uses feature report ids and everything seems to be working.
Youw commented 2019-09-24 05:34:44 -05:00 (Migrated from github.com)

great, we have a winner here

great, we have a winner here
Sign in to join this conversation.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-libusb/hidapi!70
No description provided.