do not report errors when sending of the wakeup-frame fails
[hmcfgusb] / hmland.c
index a9d9670186f8dc522b1bc772b3a1db689f0d3267..c50022c8225effc7a8814e50930bddc1f10578f4 100644 (file)
--- a/hmland.c
+++ b/hmland.c
@@ -455,7 +455,7 @@ static int comm(int fd_in, int fd_out, int master_socket, int flags)
        memset(out, 0, sizeof(out));
        out[0] = 'K';
        wait_for_h = 1;
        memset(out, 0, sizeof(out));
        out[0] = 'K';
        wait_for_h = 1;
-       hmcfgusb_send_null_frame(dev);
+       hmcfgusb_send_null_frame(dev, 1);
        hmcfgusb_send(dev, out, sizeof(out), 1);
 
        while(!quit) {
        hmcfgusb_send(dev, out, sizeof(out), 1);
 
        while(!quit) {
@@ -482,7 +482,7 @@ static int comm(int fd_in, int fd_out, int master_socket, int flags)
                                quit = 1;
                        } else {
                                /* periodically wakeup the device */
                                quit = 1;
                        } else {
                                /* periodically wakeup the device */
-                               hmcfgusb_send_null_frame(dev);
+                               hmcfgusb_send_null_frame(dev, 1);
                        }
                }
        }
                        }
                }
        }
Impressum, Datenschutz