From: Martin Ling Date: Fri, 27 Dec 2013 22:24:40 +0000 (+0100) Subject: rigol-ds: Use correct analog frame size for VS5000 series. X-Git-Tag: libsigrok-0.3.0~388 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=9e4b7d98337658d02a1789b0b8a11939eb6ef087;p=libsigrok.git rigol-ds: Use correct analog frame size for VS5000 series. --- diff --git a/hardware/rigol-ds/api.c b/hardware/rigol-ds/api.c index 6ada6a4b..aafbb6b8 100644 --- a/hardware/rigol-ds/api.c +++ b/hardware/rigol-ds/api.c @@ -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;