From: Frank Stettner Date: Thu, 22 Feb 2018 14:30:43 +0000 (+0100) Subject: metex14: Fix wrong measurement modes X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=cd97e39d8917ac7612712ee51ae24ffc89706239;p=libsigrok.git metex14: Fix wrong measurement modes --- diff --git a/src/dmm/metex14.c b/src/dmm/metex14.c index f7d05b63..b610aba9 100644 --- a/src/dmm/metex14.c +++ b/src/dmm/metex14.c @@ -173,8 +173,10 @@ static void parse_flags(const char *buf, struct metex14_info *info) ((!strncmp(buf, "WT", 2) && info->is_watt)); info->is_power_factor = !strncmp(buf, "CO", 2) && info->is_unitless; info->is_hfe = !strncmp(buf, "HF", 2) || - (!strncmp(buf, " ", 2) && !info->is_volt && !info->is_ohm && - !info->is_logic && !info->is_farad && !info->is_hertz); + (!strncmp(buf, " ", 2) && !info->is_ampere &&!info->is_volt && + !info->is_resistance && !info->is_capacity && !info->is_frequency && + !info->is_temperature && !info->is_power && !info->is_power_factor && + !info->is_gain && !info->is_logic && !info->is_diode); info->is_min = !strncmp(buf, "MN", 2); info->is_max = !strncmp(buf, "MX", 2); info->is_avg = !strncmp(buf, "AG", 2);