]> sigrok.org Git - libsigrok.git/commitdiff
serial-dmm: rename victor-dmm-ser entry, default to USB HID cable
authorGerhard Sittig <redacted>
Tue, 11 Jun 2019 16:56:04 +0000 (18:56 +0200)
committerGerhard Sittig <redacted>
Thu, 13 Jun 2019 17:35:57 +0000 (19:35 +0200)
The serial-dmm entry for Victor DMMs is able to communicate to either
geniune COM ports (RS232 or USB CDC) or the obfuscating USB HID cables.
The victor-dmm driver became obsolete and was removed. Rename the
serial-dmm entry, remove the no longer needed "-ser" suffix. Suggest a
default connection via the obfuscating USB HID cable, accept user
provided overrides for regular serial cables (same behaviour as before,
connection spec for serial ports keeps being mandatory).

src/hardware/serial-dmm/api.c

index 4de00e1c173d8481947abedd74cd8b0b4548c058..da81bc907f5c94c24646ce5a792937de005875c5 100644 (file)
@@ -443,10 +443,9 @@ SR_REGISTER_DEV_DRIVER_LIST(serial_dmm_drivers,
                FS9922_PACKET_SIZE, 0, 0, NULL,
                sr_fs9922_packet_valid, sr_fs9922_parse, NULL
        ),
-       DMM(
-               "victor-dmm-ser", fs9922,
-               "Victor", "Victor DMMs (Mini-USB cable)", "2400/8n1",
-               FS9922_PACKET_SIZE, 0, 0, NULL,
+       DMM_CONN(
+               "victor-dmm", fs9922, "Victor", "Victor DMMs",
+               "hid/victor", "2400/8n1", FS9922_PACKET_SIZE, 0, 0, NULL,
                sr_fs9922_packet_valid, sr_fs9922_parse, NULL
        ),
        DMM(