From 03f169b36b1e91d15b3bc292d1dcd2b03c9b50c6 Mon Sep 17 00:00:00 2001 From: Gerhard Sittig Date: Tue, 11 Jun 2019 18:56:04 +0200 Subject: [PATCH] serial-dmm: rename victor-dmm-ser entry, default to USB HID cable 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 | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/hardware/serial-dmm/api.c b/src/hardware/serial-dmm/api.c index 4de00e1c..da81bc90 100644 --- a/src/hardware/serial-dmm/api.c +++ b/src/hardware/serial-dmm/api.c @@ -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(