X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fanalog.c;h=61f1f733aaa8bdc7bd9433d42c4cc5ff7df5429f;hb=2a8f2d41adcd0aa9e498c4eea2a5f82263039e5c;hp=2116ad7585af721b53e7511beea9ad57a85bbb78;hpb=f7bcc68604cea023043c3067d8bd952d86d69a89;p=libsigrok.git diff --git a/src/analog.c b/src/analog.c index 2116ad75..61f1f733 100644 --- a/src/analog.c +++ b/src/analog.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include #include @@ -47,6 +48,7 @@ struct unit_mq_string { char *str; }; +/* Please use the same order as in enum sr_unit (libsigrok.h). */ static struct unit_mq_string unit_strings[] = { { SR_UNIT_VOLT, "V" }, { SR_UNIT_AMPERE, "A" }, @@ -88,6 +90,7 @@ static struct unit_mq_string unit_strings[] = { ALL_ZERO }; +/* Please use the same order as in enum sr_mqflag (libsigrok.h). */ static struct unit_mq_string mq_strings[] = { { SR_MQFLAG_AC, " AC" }, { SR_MQFLAG_DC, " DC" },