X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fagilent-dmm%2Fprotocol.c;h=cfbb3c310be4c72efd62200dfcbf94a6d65729e4;hb=fef90b410162bcdb3a7690e15dfabbf90b4f595d;hp=7c31fe81fa324f3d63ae437d060dde06e2237cd6;hpb=63bb11babae03609b06bb06a4c48100e72a81cd7;p=libsigrok.git diff --git a/src/hardware/agilent-dmm/protocol.c b/src/hardware/agilent-dmm/protocol.c index 7c31fe81..cfbb3c31 100644 --- a/src/hardware/agilent-dmm/protocol.c +++ b/src/hardware/agilent-dmm/protocol.c @@ -414,6 +414,7 @@ static int recv_fetc(const struct sr_dev_inst *sdi, GMatchInfo *match) struct sr_analog_encoding encoding; struct sr_analog_meaning meaning; struct sr_analog_spec spec; + struct sr_channel *prev_chan; float fvalue; const char *s; char *mstr; @@ -473,8 +474,8 @@ static int recv_fetc(const struct sr_dev_inst *sdi, GMatchInfo *match) sr_sw_limits_update_samples_read(&devc->limits, 1); -skip_value:; - struct sr_channel *prev_chan = devc->cur_channel; +skip_value: + prev_chan = devc->cur_channel; devc->cur_channel = sr_next_enabled_channel(sdi, devc->cur_channel); if (devc->cur_channel->index > prev_chan->index) return JOB_AGAIN;