X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/hmcfgusb/blobdiff_plain/6df7655e668c418754a930d29568c7189454ed12..d26506bfa2b8d190cae9af9ca251564d3db0156e:/hmcfgusb.c?ds=inline diff --git a/hmcfgusb.c b/hmcfgusb.c index f35138f..65b4763 100644 --- a/hmcfgusb.c +++ b/hmcfgusb.c @@ -407,6 +407,9 @@ int hmcfgusb_poll(struct hmcfgusb_dev *dev, int timeout) } else { if ((tv.tv_sec == 0) && (tv.tv_usec == 0)) { usb_event = 1; + } else if (tv.tv_sec > timeout) { + tv.tv_sec = timeout; + tv.tv_usec = 0; } }