]> sigrok.org Git - libsigrok.git/blobdiff - hardware/fluke-dmm/fluke.c
Replace 'probe' with 'channel' in most places.
[libsigrok.git] / hardware / fluke-dmm / fluke.c
index 962c4f4f7762728ea5531103dbbcd1ea322ce489..edb6734adbd06166a1204cbd02012c16f77e060f 100644 (file)
@@ -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) {