X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fvictor-dmm%2Fprotocol.c;h=6af51419326694c6241c349b850bb5c04a70a393;hb=5d336f1130ddc2faaeabd7ed6ec602904054bfb8;hp=ad78224fab1461c73c8ab780f899f4ad15a672db;hpb=69e19dd7691f86ac001469d1b319e1358e0d9778;p=libsigrok.git diff --git a/hardware/victor-dmm/protocol.c b/hardware/victor-dmm/protocol.c index ad78224f..6af51419 100644 --- a/hardware/victor-dmm/protocol.c +++ b/hardware/victor-dmm/protocol.c @@ -138,7 +138,7 @@ static void decode_buf(struct sr_dev_inst *sdi, unsigned char *data) } /* Scale flags on the right, continued */ - is_max = is_min = TRUE; + is_max = is_min = FALSE; if (data[5] & 0x04) is_max = TRUE; if (data[5] & 0x08) @@ -252,7 +252,7 @@ static void decode_buf(struct sr_dev_inst *sdi, unsigned char *data) if (is_relative) analog.mqflags |= SR_MQFLAG_RELATIVE; - analog.probes = sdi->probes; + analog.channels = sdi->channels; analog.num_samples = 1; analog.data = &fvalue; packet.type = SR_DF_ANALOG;