]> sigrok.org Git - libsigrok.git/commitdiff
serial-dmm: sort the list of device drivers (part 2, dtm0660)
authorGerhard Sittig <redacted>
Sat, 5 Nov 2016 15:31:11 +0000 (16:31 +0100)
committerUwe Hermann <redacted>
Sun, 6 Nov 2016 13:43:30 +0000 (14:43 +0100)
This commit puts 'dtm0660' meters into one group.

src/hardware/serial-dmm/api.c

index 019bf2096695bda5c8f94021d4dabb5ef434775d..165f3bb8e12740b5652ba7bc0a167d69561c1b84 100644 (file)
@@ -241,6 +241,20 @@ SR_REGISTER_DEV_DRIVER_LIST(serial_dmm_drivers,
                NULL
        ),
        /* }}} */
+       /* dtm0660 based meters {{{ */
+       DMM(
+               "peaktech-3415", dtm0660,
+               "Peaktech", "3415", "2400/8n1/rts=0/dtr=1",
+               2400, DTM0660_PACKET_SIZE, 0, 0, NULL,
+               sr_dtm0660_packet_valid, sr_dtm0660_parse, NULL
+       ),
+       DMM(
+               "velleman-dvm4100", dtm0660,
+               "Velleman", "DVM4100", "2400/8n1/rts=0/dtr=1",
+               2400, DTM0660_PACKET_SIZE, 0, 0, NULL,
+               sr_dtm0660_packet_valid, sr_dtm0660_parse, NULL
+       ),
+       /* }}} */
        /* meters based on other chips (to get sorted) */
        DMM(
                "bbcgm-2010", metex14,
@@ -557,18 +571,6 @@ SR_REGISTER_DEV_DRIVER_LIST(serial_dmm_drivers,
                sr_es519xx_19200_11b_packet_valid, sr_es519xx_19200_11b_parse,
                NULL
        ),
-       DMM(
-               "velleman-dvm4100", dtm0660,
-               "Velleman", "DVM4100", "2400/8n1/rts=0/dtr=1",
-               2400, DTM0660_PACKET_SIZE, 0, 0, NULL,
-               sr_dtm0660_packet_valid, sr_dtm0660_parse, NULL
-       ),
-       DMM(
-               "peaktech-3415", dtm0660,
-               "Peaktech", "3415", "2400/8n1/rts=0/dtr=1",
-               2400, DTM0660_PACKET_SIZE, 0, 0, NULL,
-               sr_dtm0660_packet_valid, sr_dtm0660_parse, NULL
-       ),
        DMM(
                "peaktech-3330", fs9721,
                "Peaktech", "3330", "2400/8n1/dtr=1", 2400,