]> sigrok.org Git - libsigrok.git/blobdiff - src/analog.c
No need to check return value of libusb_get_device_descriptor().
[libsigrok.git] / src / analog.c
index 2116ad7585af721b53e7511beea9ad57a85bbb78..61f1f733aaa8bdc7bd9433d42c4cc5ff7df5429f 100644 (file)
@@ -17,6 +17,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+#include <config.h>
 #include <stdio.h>
 #include <stdint.h>
 #include <string.h>
@@ -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" },