From: Fabio Date: Wed, 5 Mar 2014 09:04:17 +0000 (+0100) Subject: Fluke189 support X-Git-Tag: libsigrok-0.3.0~129 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=0bc3ab92e66ee08486e25a9a95b1300e2654fd28;p=libsigrok.git Fluke189 support I can confirm that the 189 uses the same "QM" command as the 187: <-- QM\r --> QM,+03.225 mV AC --- diff --git a/hardware/fluke-dmm/api.c b/hardware/fluke-dmm/api.c index 08cd62f2..d9d3d9b8 100644 --- a/hardware/fluke-dmm/api.c +++ b/hardware/fluke-dmm/api.c @@ -54,6 +54,7 @@ static char *scan_conn[] = { static const struct flukedmm_profile supported_flukedmm[] = { { FLUKE_187, "187", 100, 1000 }, + { FLUKE_189, "189", 100, 1000 }, { FLUKE_287, "287", 100, 1000 }, { FLUKE_190, "199B", 1000, 3500 }, }; diff --git a/hardware/fluke-dmm/fluke-dmm.h b/hardware/fluke-dmm/fluke-dmm.h index 4291be06..d162bdd0 100644 --- a/hardware/fluke-dmm/fluke-dmm.h +++ b/hardware/fluke-dmm/fluke-dmm.h @@ -27,6 +27,7 @@ /* Supported models */ enum { FLUKE_187 = 1, + FLUKE_189, FLUKE_287, FLUKE_190, }; diff --git a/hardware/fluke-dmm/fluke.c b/hardware/fluke-dmm/fluke.c index 962c4f4f..493bcc15 100644 --- a/hardware/fluke-dmm/fluke.c +++ b/hardware/fluke-dmm/fluke.c @@ -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) {