aboutsummaryrefslogtreecommitdiff
path: root/hid-tminit.c
diff options
context:
space:
mode:
authorDario Pagani <>2020-08-19 22:50:26 +0200
committerDario Pagani <>2020-08-19 22:50:26 +0200
commit6a120c044242872e1cdf92463e2fee1a85dbff66 (patch)
tree5b6ba8ee93394b123a3ec1583352dfb2c485a122 /hid-tminit.c
parentdc9a1a0ddaef468e71714a0ad01de2db7699e022 (diff)
downloadhid-tminit-6a120c044242872e1cdf92463e2fee1a85dbff66.tar.gz
hid-tminit-6a120c044242872e1cdf92463e2fee1a85dbff66.zip
Added broken pipe as a new "normal" error code in the last handler.
Replaced hid_err with hid_warn in the last handler
Diffstat (limited to 'hid-tminit.c')
-rw-r--r--hid-tminit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hid-tminit.c b/hid-tminit.c
index 8219ab1..1538bab 100644
--- a/hid-tminit.c
+++ b/hid-tminit.c
@@ -62,10 +62,10 @@ static void tminit_change_handler(struct urb *urb)
struct hid_device *hdev = urb->context;
// The wheel seems to kill himself before answering the host and therefore is violating the USB protocol...
- if(urb->status == 0 || urb->status == -EPROTO)
+ if(urb->status == 0 || urb->status == -EPROTO || urb->status == -EPIPE)
hid_info(hdev, "Success?! The wheel should have been initialized!\n");
else
- hid_err(hdev, "URB to change wheel mode failed with error %d\n", urb->status);
+ hid_warn(hdev, "URB to change wheel mode seems to have failed with error %d\n", urb->status);
}