Fluke189 support

I can confirm that the 189 uses the same "QM" command as the 187:
<-- QM\r
--> QM,+03.225 mV AC
This commit is contained in:
Fabio 2014-03-05 10:04:17 +01:00 committed by Bert Vermeulen
parent 8c9d4d67f8
commit 0bc3ab92e6
3 changed files with 3 additions and 1 deletions

View File

@ -54,6 +54,7 @@ static char *scan_conn[] = {
static const struct flukedmm_profile supported_flukedmm[] = { static const struct flukedmm_profile supported_flukedmm[] = {
{ FLUKE_187, "187", 100, 1000 }, { FLUKE_187, "187", 100, 1000 },
{ FLUKE_189, "189", 100, 1000 },
{ FLUKE_287, "287", 100, 1000 }, { FLUKE_287, "287", 100, 1000 },
{ FLUKE_190, "199B", 1000, 3500 }, { FLUKE_190, "199B", 1000, 3500 },
}; };

View File

@ -27,6 +27,7 @@
/* Supported models */ /* Supported models */
enum { enum {
FLUKE_187 = 1, FLUKE_187 = 1,
FLUKE_189,
FLUKE_287, FLUKE_287,
FLUKE_190, FLUKE_190,
}; };

View File

@ -435,7 +435,7 @@ static void handle_line(const struct sr_dev_inst *sdi)
analog = NULL; analog = NULL;
tokens = g_strsplit(devc->buf, ",", 0); tokens = g_strsplit(devc->buf, ",", 0);
if (tokens[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; devc->expect_response = FALSE;
analog = handle_qm_18x(sdi, tokens); analog = handle_qm_18x(sdi, tokens);
} else if (devc->profile->model == FLUKE_287) { } else if (devc->profile->model == FLUKE_287) {