Skip to content

Commit 0b9d8e6

Browse files
committed
Quiet spurious warning
Fixes #8112
1 parent 4a0f56b commit 0b9d8e6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/hidapi/linux/hid.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -884,9 +884,9 @@ int HID_API_EXPORT hid_get_feature_report(hid_device *dev, unsigned char *data,
884884
unsigned char report = data[0];
885885

886886
res = ioctl(dev->device_handle, HIDIOCGFEATURE(length), data);
887-
if (res < 0)
888-
perror("ioctl (GFEATURE)");
889-
else if (dev->needs_ble_hack) {
887+
if (res < 0) {
888+
/* perror("ioctl (GFEATURE)"); */
889+
} else if (dev->needs_ble_hack) {
890890
/* Versions of BlueZ before 5.56 don't include the report in the data,
891891
* and versions of BlueZ >= 5.56 include 2 copies of the report.
892892
* We'll fix it so that there is a single copy of the report in both cases

0 commit comments

Comments
 (0)