]> sigrok.org Git - libsigrok.git/commitdiff
fluke-dmm: Add support for the Fluke 289.
authorUwe Hermann <redacted>
Fri, 4 Mar 2016 08:37:16 +0000 (09:37 +0100)
committerUwe Hermann <redacted>
Fri, 4 Mar 2016 16:38:35 +0000 (17:38 +0100)
Thanks to Julien Bresciani <redacted> for providing
the information about the required changes!

src/hardware/fluke-dmm/api.c
src/hardware/fluke-dmm/fluke-dmm.h
src/hardware/fluke-dmm/fluke.c

index 808778db136999e3e5d3423255cac205ffae8e58..23b8adb7b4786d7ded3b21d09a0b629205b335ab 100644 (file)
@@ -56,6 +56,7 @@ static const struct flukedmm_profile supported_flukedmm[] = {
        { FLUKE_189, "189", 100, 1000 },
        { FLUKE_287, "287", 100, 1000 },
        { FLUKE_190, "199B", 1000, 3500 },
+       { FLUKE_289, "289", 100, 1000 },
 };
 
 static int init(struct sr_dev_driver *di, struct sr_context *sr_ctx)
index 664d76d95f1b06197626becb161da289dae78da2..823f1624940ab3c5541a25b24a1fe78e957bd3b5 100644 (file)
@@ -33,6 +33,7 @@ enum {
        FLUKE_189,
        FLUKE_287,
        FLUKE_190,
+       FLUKE_289,
 };
 
 /* Supported device profiles */
index c6ab4b01a35802a3357125c1958bfbdf809bf179..7a1fbf92022b0111115581eb5cc3a2f8f999e966 100644 (file)
@@ -433,7 +433,7 @@ static void handle_line(const struct sr_dev_inst *sdi)
                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) {
+               } else if (devc->profile->model == FLUKE_287 || devc->profile->model == FLUKE_289) {
                        devc->expect_response = FALSE;
                        analog = handle_qm_28x(sdi, tokens);
                } else if (devc->profile->model == FLUKE_190) {