]> cvs.zerfleddert.de Git - hmcfgusb/blobdiff - hmsniff.c
allow absolute reboot (hh:mm) time to be specified with -r switch
[hmcfgusb] / hmsniff.c
index 1936d5bd0d53dbd306cb983084bf3d1cb5dc4070..ee148006a87a3add07d80ca3c3ba2168da583022 100644 (file)
--- a/hmsniff.c
+++ b/hmsniff.c
@@ -206,11 +206,13 @@ int main(int argc, char **argv)
                                continue;
                        } else if (fd == -1) {
                                if (errno) {
-                                       perror("hmcfgusb_poll");
-                                       break;
-                               } else {
-                                       /* periodically wakeup the device */
-                                       hmcfgusb_send_null_frame(dev, 1);
+                                       if (errno != ETIMEDOUT) {
+                                               perror("hmcfgusb_poll");
+                                               break;
+                                       } else {
+                                               /* periodically wakeup the device */
+                                               hmcfgusb_send_null_frame(dev, 1);
+                                       }
                                }
                        }
                }
Impressum, Datenschutz