]> sigrok.org Git - libsigrok.git/blobdiff - hardware/rigol-ds/protocol.c
scpi: add VXI transport support
[libsigrok.git] / hardware / rigol-ds / protocol.c
index eefed0745b8f3e9276c71c7c93ac56458f70cddf..9952e2a41517b0865e0b458ea3a324002e25d80f 100644 (file)
@@ -423,7 +423,7 @@ SR_PRIV int rigol_ds_receive(int fd, int revents, void *cb_data)
 
        scpi = sdi->conn;
 
-       if (revents == G_IO_IN) {
+       if (revents == G_IO_IN || revents == 0) {
                if (devc->model->protocol == PROTOCOL_IEEE488_2) {
                        switch(devc->wait_event) {
                        case WAIT_NONE: