es51922/fs9721/fs9922/metex14: Use diode MQFLAG.

This fixes #141.
This commit is contained in:
Uwe Hermann 2013-09-01 13:40:17 +02:00
parent 98494dc8a3
commit a6ed50f405
4 changed files with 8 additions and 0 deletions

View 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,

View 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)

View 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)

View 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)