X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fanalog.c;h=dfb38cec5a43749e5014f80b9b259f9c65640e95;hb=ca7dbb56161f9f4b7f842103fca59d41d559c793;hp=2116ad7585af721b53e7511beea9ad57a85bbb78;hpb=55c9f09dbc7edd24b0da8dda8837aff6a932e3c5;p=libsigrok.git diff --git a/src/analog.c b/src/analog.c index 2116ad75..dfb38cec 100644 --- a/src/analog.c +++ b/src/analog.c @@ -47,6 +47,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 +89,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" },