X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fdmm%2Fvc870.c;h=2af7cc99c6c6d6008935ce1c5827dbce8fbedb13;hb=3e7fb88f21d9b6d87652af2d988c83d8481592de;hp=43be935e3bdebaff92777a04f550607784e3d936;hpb=a66d44bee19bd0d73df26710a5ce46c9e0be6bb8;p=libsigrok.git diff --git a/src/dmm/vc870.c b/src/dmm/vc870.c index 43be935e..2af7cc99 100644 --- a/src/dmm/vc870.c +++ b/src/dmm/vc870.c @@ -14,8 +14,7 @@ * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * along with this program; if not, see . */ #include @@ -167,7 +166,7 @@ static int parse_range(uint8_t b, float *floatval, int *exponent, static void parse_flags(const uint8_t *buf, struct vc870_info *info) { - /* Bytes 0/1: Function / function select */ + /* Bytes 0/1: Function / function select */ /* Note: Some of these mappings are fixed up later. */ switch (buf[0]) { case 0x30: /* DCV / ACV */ @@ -361,7 +360,7 @@ static void handle_flags(struct sr_datafeed_analog *analog, if (info->is_auto) analog->meaning->mqflags |= SR_MQFLAG_AUTORANGE; if (info->is_diode) - analog->meaning->mqflags |= SR_MQFLAG_DIODE; + analog->meaning->mqflags |= SR_MQFLAG_DIODE | SR_MQFLAG_DC; if (info->is_hold) /* * Note: HOLD only affects the number displayed on the LCD, @@ -429,7 +428,7 @@ SR_PRIV int sr_vc870_parse(const uint8_t *buf, float *floatval, handle_flags(analog, floatval, info_local); - analog->encoding->digits = -exponent; + analog->encoding->digits = -exponent; analog->spec->spec_digits = -exponent; return SR_OK;