mirror of
https://github.com/RPCS3/hidapi.git
synced 2025-02-18 17:57:53 +00:00
Merge branch 'master' of github.com:signal11/hidapi
This commit is contained in:
commit
0e67d54581
@ -31,7 +31,7 @@ int main(int argc, char* argv[])
|
||||
unsigned char buf[256];
|
||||
#define MAX_STR 255
|
||||
wchar_t wstr[MAX_STR];
|
||||
int handle;
|
||||
hid_device *handle;
|
||||
int i;
|
||||
|
||||
#ifdef WIN32
|
||||
@ -39,7 +39,7 @@ int main(int argc, char* argv[])
|
||||
UNREFERENCED_PARAMETER(argv);
|
||||
#endif
|
||||
|
||||
struct hid_device *devs, *cur_dev;
|
||||
struct hid_device_info *devs, *cur_dev;
|
||||
|
||||
devs = hid_enumerate(0x0, 0x0);
|
||||
cur_dev = devs;
|
||||
@ -63,7 +63,7 @@ int main(int argc, char* argv[])
|
||||
// and optionally the Serial number.
|
||||
////handle = hid_open(0x4d8, 0x3f, L"12345");
|
||||
handle = hid_open(0x4d8, 0x3f, NULL);
|
||||
if (handle < 0) {
|
||||
if (!handle) {
|
||||
printf("unable to open device\n");
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user