diff options
| author | Dario Pagani <> | 2020-08-19 22:50:26 +0200 |
|---|---|---|
| committer | Dario Pagani <> | 2020-08-19 22:50:26 +0200 |
| commit | 6a120c044242872e1cdf92463e2fee1a85dbff66 (patch) | |
| tree | 5b6ba8ee93394b123a3ec1583352dfb2c485a122 | |
| parent | dc9a1a0ddaef468e71714a0ad01de2db7699e022 (diff) | |
| download | hid-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
| -rw-r--r-- | hid-tminit.c | 4 |
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); } |
