scpi-pps: Start acquisition on the first enabled channel.

This commit is contained in:
Bert Vermeulen 2014-10-17 03:00:55 +02:00
parent 624503ae90
commit 984e4b0db8
1 changed files with 3 additions and 2 deletions

View File

@ -507,9 +507,10 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi,
std_session_send_df_header(sdi, LOG_PREFIX);
/* Prime the pipe with the first channel's fetch. */
ch = sdi->channels->data;
ch = next_enabled_channel(sdi, NULL);
pch = ch->priv;
select_channel(sdi, ch);
if ((ret = select_channel(sdi, ch)) != SR_OK)
return ret;
if (pch->mq == SR_MQ_VOLTAGE)
cmd = SCPI_CMD_GET_MEAS_VOLTAGE;
else if (pch->mq == SR_MQ_CURRENT)