]> sigrok.org Git - libsigrok.git/commitdiff
es51922/fs9721/fs9922/metex14: Use diode MQFLAG.
authorUwe Hermann <redacted>
Sun, 1 Sep 2013 11:40:17 +0000 (13:40 +0200)
committerUwe Hermann <redacted>
Sun, 1 Sep 2013 13:27:07 +0000 (15:27 +0200)
This fixes #141.

hardware/common/dmm/es51922.c
hardware/common/dmm/fs9721.c
hardware/common/dmm/fs9922.c
hardware/common/dmm/metex14.c

index fcb4ae605e9a89c437c9a4bfbd2e05a75d7900e0..09563f93610fec812596f516c296fac794706b30 100644 (file)
@@ -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,
index b775380f751b2ef87e232bd76e06a810969449ee..705da3cc19a47ae6587ee4fea9567dc03a177fdf 100644 (file)
@@ -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)
index ffe06a051d1d41e37138bd8f2c592ca7daf0b1db..9decc78621723fdf08cbbfc8c3073b6d5e68b618 100644 (file)
@@ -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)
index 9091885614d2c46e8754e594fe8aca62a4428392..0eb24d7ed028f8c71ddebcb5988a86535258f591 100644 (file)
@@ -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)