]> sigrok.org Git - libsigrok.git/commitdiff
yokogawa-dlm: Lower timeout to increase throughput and fix data acq bug
authorSoeren Apel <redacted>
Wed, 27 Aug 2014 12:22:57 +0000 (14:22 +0200)
committerSoeren Apel <redacted>
Sat, 30 Aug 2014 22:42:10 +0000 (00:42 +0200)
src/hardware/yokogawa-dlm/api.c
src/hardware/yokogawa-dlm/protocol.c

index 030bf85460fbc0531ed087a5bd598e8d0f1ba4bd..9a9c5fea3642593afbc99d7ee013ace9137c30a1 100644 (file)
@@ -674,8 +674,8 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, void *cb_data)
        devc->current_channel = devc->enabled_channels;
        dlm_channel_data_request(sdi);
 
-       /* Call our callback when data comes in or after 50ms. */
-       sr_scpi_source_add(sdi->session, scpi, G_IO_IN, 10,
+       /* Call our callback when data comes in or after 5ms. */
+       sr_scpi_source_add(sdi->session, scpi, G_IO_IN, 5,
                        dlm_data_receive, (void *)sdi);
 
        return SR_OK;
index 84ea966d188a8d16851f33b2d13fe77c8b822c10..582da49236dad6ed8fe4fc9f8b0bfbcf59a8bf4b 100644 (file)
@@ -962,6 +962,7 @@ SR_PRIV int dlm_data_receive(int fd, int revents, void *cb_data)
                /* Don't care about return value here. */
                dlm_acquisition_stop(sdi->conn);
                g_array_free(data, TRUE);
+               dlm_channel_data_request(sdi);
                return TRUE;
        }