X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fdmm%2Fm2110.c;h=93887dcc804b1b6863d5eadfef14c3fdf9d1468c;hb=8cbf5627baf007b8766546986ef267868d2ff5b6;hp=5863cef1e706e31d4923a51d02754f65c3c1cc32;hpb=155b680da482cea2381becb73c51cfb838bff31e;p=libsigrok.git diff --git a/src/dmm/m2110.c b/src/dmm/m2110.c index 5863cef1..93887dcc 100644 --- a/src/dmm/m2110.c +++ b/src/dmm/m2110.c @@ -25,10 +25,11 @@ * Most probably the simplest multimeter protocol ever ;-) . */ +#include #include #include #include -#include "libsigrok.h" +#include #include "libsigrok-internal.h" #define LOG_PREFIX "m2110" @@ -57,9 +58,9 @@ SR_PRIV int sr_m2110_parse(const uint8_t *buf, float *floatval, (void)info; /* We don't know the unit, so that's the best we can do. */ - analog->mq = SR_MQ_GAIN; - analog->unit = SR_UNIT_UNITLESS; - analog->mqflags = 0; + analog->meaning->mq = SR_MQ_GAIN; + analog->meaning->unit = SR_UNIT_UNITLESS; + analog->meaning->mqflags = 0; if (!strncmp((const char *)buf, "OVERRNG", 7)) *floatval = INFINITY;