hidtest: report VID and PID in hid_open failure message #14
No reviewers
Labels
No labels
3rdparty
Android
API
Author does not respond
bsd
bug
build system/CI
ci-virtual-device
CMake
Contributions Welcome
Core
dependencies
device-specific
documentation
don't_merge
duplicate
enhancement
Example
Haiku
hidraw
hotplug
info required
invalid
libusb
macOS
Misc
Not an issue
question
Release
Test
Test GUI
Windows
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-libusb/hidapi!14
Loading…
Reference in a new issue
No description provided.
Delete branch "hid-open"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
hidtest attempts to open a device with VID:PID 04d8:00x3f and previously
reported just "unable to open device" if that device was not found.
Include the VID:PID in the error message to clarify the issue.
@ -73,3 +73,3 @@if (!handle) {printf("unable to open device\n");printf("unable to open device %04x:%04x\n", 0x4d8, 0x3f);return 1;Probably anyone using this example is going to adjust the VID and PID. What about putting them to variables and using this variable in
printfcall?@emaste are you going to follow up?
let's re-open, when author responds
Pull request closed