]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/beaglelogic/api.c
session: Fix USB timeout handling
[libsigrok.git] / src / hardware / beaglelogic / api.c
index 12af5c1db6660891406128b93879f8409ced74fd..604849c46ee2872183b8a736ec7e35a63da1b606 100644 (file)
@@ -165,6 +165,7 @@ static int dev_open(struct sr_dev_inst *sdi)
        /* Set fd and local attributes */
        devc->pollfd.fd = devc->fd;
        devc->pollfd.events = G_IO_IN;
+       devc->pollfd.revents = 0;
 
        /* Get the default attributes */
        beaglelogic_get_samplerate(devc);