parent
98494dc8a3
commit
a6ed50f405
|
@ -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,
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue