From a6ed50f4055b9377d1ebe9e4b886ae357acc578e Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sun, 1 Sep 2013 13:40:17 +0200 Subject: [PATCH] es51922/fs9721/fs9922/metex14: Use diode MQFLAG. This fixes #141. --- hardware/common/dmm/es51922.c | 2 ++ hardware/common/dmm/fs9721.c | 2 ++ hardware/common/dmm/fs9922.c | 2 ++ hardware/common/dmm/metex14.c | 2 ++ 4 files changed, 8 insertions(+) diff --git a/hardware/common/dmm/es51922.c b/hardware/common/dmm/es51922.c index fcb4ae60..09563f93 100644 --- a/hardware/common/dmm/es51922.c +++ b/hardware/common/dmm/es51922.c @@ -304,6 +304,8 @@ static void handle_flags(struct sr_datafeed_analog *analog, analog->mqflags |= SR_MQFLAG_DC; if (info->is_auto) analog->mqflags |= SR_MQFLAG_AUTORANGE; + if (info->is_diode) + analog->mqflags |= SR_MQFLAG_DIODE; if (info->is_hold) /* * Note: HOLD only affects the number displayed on the LCD, diff --git a/hardware/common/dmm/fs9721.c b/hardware/common/dmm/fs9721.c index b775380f..705da3cc 100644 --- a/hardware/common/dmm/fs9721.c +++ b/hardware/common/dmm/fs9721.c @@ -306,6 +306,8 @@ static void handle_flags(struct sr_datafeed_analog *analog, float *floatval, analog->mqflags |= SR_MQFLAG_DC; if (info->is_auto) analog->mqflags |= SR_MQFLAG_AUTORANGE; + if (info->is_diode) + analog->mqflags |= SR_MQFLAG_DIODE; if (info->is_hold) analog->mqflags |= SR_MQFLAG_HOLD; if (info->is_rel) diff --git a/hardware/common/dmm/fs9922.c b/hardware/common/dmm/fs9922.c index ffe06a05..9decc786 100644 --- a/hardware/common/dmm/fs9922.c +++ b/hardware/common/dmm/fs9922.c @@ -293,6 +293,8 @@ static void handle_flags(struct sr_datafeed_analog *analog, float *floatval, analog->mqflags |= SR_MQFLAG_DC; if (info->is_auto) analog->mqflags |= SR_MQFLAG_AUTORANGE; + if (info->is_diode) + analog->mqflags |= SR_MQFLAG_DIODE; if (info->is_hold) analog->mqflags |= SR_MQFLAG_HOLD; if (info->is_max) diff --git a/hardware/common/dmm/metex14.c b/hardware/common/dmm/metex14.c index 90918856..0eb24d7e 100644 --- a/hardware/common/dmm/metex14.c +++ b/hardware/common/dmm/metex14.c @@ -232,6 +232,8 @@ static void handle_flags(struct sr_datafeed_analog *analog, float *floatval, analog->mqflags |= SR_MQFLAG_AC; if (info->is_dc) analog->mqflags |= SR_MQFLAG_DC; + if (info->is_diode) + analog->mqflags |= SR_MQFLAG_DIODE; } static gboolean flags_valid(const struct metex14_info *info)