]> cvs.zerfleddert.de Git - hmcfgusb/blobdiff - flash-hmcfgusb.c
fixed misleading error message
[hmcfgusb] / flash-hmcfgusb.c
index 571386f8b1bc5e49acc84c84ef0d4444dac9c499..244559d6e1d61dc1cf7bd499376f1db3a80ec06b 100644 (file)
@@ -138,8 +138,10 @@ int main(int argc, char **argv)
                        errno = 0;
                        pfd = hmcfgusb_poll(dev, 1);
                        if ((pfd < 0) && errno) {
-                               perror("\n\nhmcfgusb_poll");
-                               exit(EXIT_FAILURE);
+                               if (errno != ETIMEDOUT) {
+                                       perror("\n\nhmcfgusb_poll");
+                                       exit(EXIT_FAILURE);
+                               }
                        }
                        if (rdata.ack) {
                                break;
Impressum, Datenschutz