X-Git-Url: https://sigrok.org/gitweb/?p=libsigrok.git;a=blobdiff_plain;f=hardware%2Ffluke-dmm%2Ffluke.c;h=edb6734adbd06166a1204cbd02012c16f77e060f;hp=962c4f4f7762728ea5531103dbbcd1ea322ce489;hb=ba7dd8bbb8168cba432a844259a3e239aa5f36d7;hpb=357e341d9a9e8f3834fe82c5ff4141f67c29d2d2 diff --git a/hardware/fluke-dmm/fluke.c b/hardware/fluke-dmm/fluke.c index 962c4f4f..edb6734a 100644 --- a/hardware/fluke-dmm/fluke.c +++ b/hardware/fluke-dmm/fluke.c @@ -63,7 +63,7 @@ static struct sr_datafeed_analog *handle_qm_18x(const struct sr_dev_inst *sdi, return NULL; if (!(analog->data = g_try_malloc(sizeof(float)))) return NULL; - analog->probes = sdi->probes; + analog->channels = sdi->channels; analog->num_samples = 1; if (is_oor) *analog->data = NAN; @@ -174,7 +174,7 @@ static struct sr_datafeed_analog *handle_qm_28x(const struct sr_dev_inst *sdi, return NULL; if (!(analog->data = g_try_malloc(sizeof(float)))) return NULL; - analog->probes = sdi->probes; + analog->channels = sdi->channels; analog->num_samples = 1; *analog->data = fvalue; analog->mq = -1; @@ -396,7 +396,7 @@ static void handle_qm_19x_data(const struct sr_dev_inst *sdi, char **tokens) fvalue = 1.0; } - analog.probes = sdi->probes; + analog.channels = sdi->channels; analog.num_samples = 1; analog.data = &fvalue; analog.mq = devc->mq; @@ -435,7 +435,7 @@ static void handle_line(const struct sr_dev_inst *sdi) analog = NULL; tokens = g_strsplit(devc->buf, ",", 0); if (tokens[0]) { - if (devc->profile->model == FLUKE_187) { + if (devc->profile->model == FLUKE_187 || devc->profile->model == FLUKE_189) { devc->expect_response = FALSE; analog = handle_qm_18x(sdi, tokens); } else if (devc->profile->model == FLUKE_287) {