]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/hameg-hmo/protocol.c
hameg-hmo: Also start reading on timeout (workaround for USBTMC)
[libsigrok.git] / src / hardware / hameg-hmo / protocol.c
index 9d32dc67edfe3656cd4a921462e295f4ab396cbe..bd2174a746cd6949759977e6bd0e8fcf96e1069a 100644 (file)
@@ -743,8 +743,12 @@ SR_PRIV int hmo_receive_data(int fd, int revents, void *cb_data)
        if (!(devc = sdi->priv))
                return TRUE;
 
+       /* Although this is correct in general, the USBTMC libusb implementation
+        * currently does not generate an event prior to the first read. Often
+        * it is ok to start reading just after the 50ms timeout. See bug #785.
        if (revents != G_IO_IN)
                return TRUE;
+       */
 
        ch = devc->current_channel->data;