From ba4dfbde11f48ce4bccda265f3db1e82901df99c Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Fri, 4 Mar 2016 09:37:16 +0100 Subject: [PATCH] fluke-dmm: Add support for the Fluke 289. Thanks to Julien Bresciani for providing the information about the required changes! --- src/hardware/fluke-dmm/api.c | 1 + src/hardware/fluke-dmm/fluke-dmm.h | 1 + src/hardware/fluke-dmm/fluke.c | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/hardware/fluke-dmm/api.c b/src/hardware/fluke-dmm/api.c index 808778db..23b8adb7 100644 --- a/src/hardware/fluke-dmm/api.c +++ b/src/hardware/fluke-dmm/api.c @@ -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) diff --git a/src/hardware/fluke-dmm/fluke-dmm.h b/src/hardware/fluke-dmm/fluke-dmm.h index 664d76d9..823f1624 100644 --- a/src/hardware/fluke-dmm/fluke-dmm.h +++ b/src/hardware/fluke-dmm/fluke-dmm.h @@ -33,6 +33,7 @@ enum { FLUKE_189, FLUKE_287, FLUKE_190, + FLUKE_289, }; /* Supported device profiles */ diff --git a/src/hardware/fluke-dmm/fluke.c b/src/hardware/fluke-dmm/fluke.c index c6ab4b01..7a1fbf92 100644 --- a/src/hardware/fluke-dmm/fluke.c +++ b/src/hardware/fluke-dmm/fluke.c @@ -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) {