]> sigrok.org Git - libsigrok.git/commitdiff
rigol-ds: Use correct analog frame size for VS5000 series.
authorMartin Ling <redacted>
Fri, 27 Dec 2013 22:24:40 +0000 (23:24 +0100)
committerBert Vermeulen <redacted>
Sat, 28 Dec 2013 13:05:56 +0000 (14:05 +0100)
hardware/rigol-ds/api.c

index 6ada6a4bb0a2d046e80b5b5e7d9b2d826a5eaa3d..aafbb6b841eb5f788da2b628c0c6e8e600d62917 100644 (file)
@@ -837,7 +837,9 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, void *cb_data)
        std_session_send_df_header(cb_data, LOG_PREFIX);
 
        if (devc->model->protocol == PROTOCOL_LEGACY) {
-               devc->analog_frame_size = DS1000_ANALOG_LIVE_WAVEFORM_SIZE;
+               devc->analog_frame_size = (devc->model->series == RIGOL_VS5000 ?
+                               VS5000_ANALOG_LIVE_WAVEFORM_SIZE :
+                               DS1000_ANALOG_LIVE_WAVEFORM_SIZE);
                /* Fetch the first frame. */
                if (devc->enabled_analog_probes)
                        devc->channel = devc->enabled_analog_probes->data;