+1
-1
src/hidapi/AUTHORS.txt
+1
-1
src/hidapi/AUTHORS.txt
···
11
11
Correctness fixes
12
12
13
13
libusb/hidapi Team:
14
-
Development/maintainance since June 4th 2019
14
+
Development/maintenance since June 4th 2019
15
15
16
16
For a comprehensive list of contributions, see the commit list at github:
17
17
https://github.com/libusb/hidapi/graphs/contributors
+1
-1
src/hidapi/BUILD.cmake.md
+1
-1
src/hidapi/BUILD.cmake.md
···
16
16
CMake can be installed either using your system's package manager,
17
17
or by downloading an installer/prebuilt version from the [official website](https://cmake.org/download/).
18
18
19
-
On most \*nix systems, the prefered way to install CMake is via package manager,
19
+
On most \*nix systems, the preferred way to install CMake is via package manager,
20
20
e.g. `sudo apt install cmake`.
21
21
22
22
On Windows CMake could be provided by your development environment (e.g. by Visual Studio Installer or MinGW installer),
+1
-1
src/hidapi/libusb/CMakeLists.txt
+1
-1
src/hidapi/libusb/CMakeLists.txt
···
66
66
else()
67
67
# otherwise there is 2 options:
68
68
# 1) iconv is provided by Standard C library and the build will be just fine
69
-
# 2) The _user_ has to provide additiona compilation options for this project/target
69
+
# 2) The _user_ has to provide additional compilation options for this project/target
70
70
endif()
71
71
72
72
# check for error: "conflicting types for 'iconv'"
+1
-1
src/hidapi/libusb/hid.c
+1
-1
src/hidapi/libusb/hid.c
···
624
624
expected_report_descriptor_size = HID_API_MAX_REPORT_DESCRIPTOR_SIZE;
625
625
626
626
/* Get the HID Report Descriptor.
627
-
See USB HID Specificatin, sectin 7.1.1
627
+
See USB HID Specification, section 7.1.1
628
628
*/
629
629
int res = libusb_control_transfer(handle, LIBUSB_ENDPOINT_IN|LIBUSB_RECIPIENT_INTERFACE, LIBUSB_REQUEST_GET_DESCRIPTOR, (LIBUSB_DT_REPORT << 8), interface_num, tmp, expected_report_descriptor_size, 5000);
630
630
if (res >= 0) {
+2
-2
src/hidapi/linux/hid.c
+2
-2
src/hidapi/linux/hid.c
···
365
365
366
366
/*
367
367
* Retrieves the hidraw report descriptor from a file.
368
-
* When using this form, <sysfs_path>/device/report_descriptor, elevated priviledges are not required.
368
+
* When using this form, <sysfs_path>/device/report_descriptor, elevated privileges are not required.
369
369
*/
370
370
static int get_hid_report_descriptor(const char *rpt_path, struct hidraw_report_descriptor *rpt_desc)
371
371
{
···
1003
1003
}
1004
1004
cur_dev = tmp;
1005
1005
1006
-
/* move the pointer to the tail of returnd list */
1006
+
/* move the pointer to the tail of returned list */
1007
1007
while (cur_dev->next != NULL) {
1008
1008
cur_dev = cur_dev->next;
1009
1009
}
+1
-1
src/hidapi/mac/hid.c
+1
-1
src/hidapi/mac/hid.c
+1
-1
src/hidapi/udev/69-hid.rules
+1
-1
src/hidapi/udev/69-hid.rules
···
17
17
18
18
# Once done, optionally rename this file for your application, and drop it into
19
19
# /etc/udev/rules.d/.
20
-
# NOTE: these rules must have priorty before 73-seat-late.rules.
20
+
# NOTE: these rules must have priority before 73-seat-late.rules.
21
21
# (Small discussion/explanation in systemd repo:
22
22
# https://github.com/systemd/systemd/issues/4288#issuecomment-348166161)
23
23
# for example, name the file /etc/udev/rules.d/70-my-application-hid.rules.
+1
-1
src/hidapi/windows/hid.c
+1
-1
src/hidapi/windows/hid.c
···
233
233
memset(&dev->ol, 0, sizeof(dev->ol));
234
234
dev->ol.hEvent = CreateEvent(NULL, FALSE, FALSE /*initial state f=nonsignaled*/, NULL);
235
235
memset(&dev->write_ol, 0, sizeof(dev->write_ol));
236
-
dev->write_ol.hEvent = CreateEvent(NULL, FALSE, FALSE /*inital state f=nonsignaled*/, NULL);
236
+
dev->write_ol.hEvent = CreateEvent(NULL, FALSE, FALSE /*initial state f=nonsignaled*/, NULL);
237
237
dev->device_info = NULL;
238
238
239
239
return dev;
+5
-5
src/hidapi/windows/hidapi_descriptor_reconstruct.c
+5
-5
src/hidapi/windows/hidapi_descriptor_reconstruct.c
···
235
235
}
236
236
237
237
// *************************************************************************
238
-
// -Determine hierachy levels of each collections and store it in:
238
+
// -Determine hierarchy levels of each collections and store it in:
239
239
// coll_levels[COLLECTION_INDEX]
240
240
// -Determine number of direct childs of each collections and store it in:
241
241
// coll_number_of_direct_childs[COLLECTION_INDEX]
···
303
303
}
304
304
}
305
305
306
-
// *************************************************************************************************
307
-
// Determine child collection order of the whole hierachy, based on previously determined bit ranges
306
+
// **************************************************************************************************
307
+
// Determine child collection order of the whole hierarchy, based on previously determined bit ranges
308
308
// and store it this index coll_child_order[COLLECTION_INDEX][DIRECT_CHILD_INDEX]
309
-
// *************************************************************************************************
309
+
// **************************************************************************************************
310
310
USHORT **coll_child_order;
311
311
coll_child_order = malloc(pp_data->NumberLinkCollectionNodes * sizeof(*coll_child_order));
312
312
{
···
326
326
{
327
327
// Create list of child collection indices
328
328
// sorted reverse to the order returned to HidP_GetLinkCollectionNodeschild
329
-
// which seems to match teh original order, as long as no bit position needs to be considered
329
+
// which seems to match the original order, as long as no bit position needs to be considered
330
330
USHORT child_idx = link_collection_nodes[collection_node_idx].FirstChild;
331
331
int child_count = coll_number_of_direct_childs[collection_node_idx] - 1;
332
332
coll_child_order[collection_node_idx][child_count] = child_idx;
+4
-4
src/hidapi/windows/test/hid_report_reconstructor_test.c
+4
-4
src/hidapi/windows/test/hid_report_reconstructor_test.c
···
129
129
pp_data->caps_info[rt_idx].ReportByteLength = temp_ushort;
130
130
continue;
131
131
}
132
-
fprintf(stderr, "Ignorring unimplemented caps_info field: %s", line);
132
+
fprintf(stderr, "Ignoring unimplemented caps_info field: %s", line);
133
133
continue;
134
134
}
135
135
···
259
259
pp_data->caps[caps_idx].UnknownTokens[token_idx].BitField = temp_ulong;
260
260
continue;
261
261
}
262
-
fprintf(stderr, "Ignorring unimplemented pp_data->cap[]->pp_cap->UnknownTokens field: %s", line);
262
+
fprintf(stderr, "Ignoring unimplemented pp_data->cap[]->pp_cap->UnknownTokens field: %s", line);
263
263
continue;
264
264
}
265
265
···
383
383
pp_data->caps[caps_idx].Reserved1[2] = temp_uchar[2];
384
384
continue;
385
385
}
386
-
fprintf(stderr, "Ignorring unimplemented cap field: %s", line);
386
+
fprintf(stderr, "Ignoring unimplemented cap field: %s", line);
387
387
continue;
388
388
}
389
389
···
433
433
pcoll[coll_idx].Reserved = temp_ulong;
434
434
continue;
435
435
}
436
-
fprintf(stderr, "Ignorring unimplemented LinkCollectionArray field: %s", line);
436
+
fprintf(stderr, "Ignoring unimplemented LinkCollectionArray field: %s", line);
437
437
continue;
438
438
}
439
439
}