From 7c796758d1b65d4d7585c90ba71b1fb339a4d283 Mon Sep 17 00:00:00 2001 From: Dave Hibberd Date: Thu, 4 Sep 2025 22:52:12 +0100 Subject: New upstream version 6.0.25.1+repack --- RigControl.c | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'RigControl.c') diff --git a/RigControl.c b/RigControl.c index c2b7c4d..279f085 100644 --- a/RigControl.c +++ b/RigControl.c @@ -5450,7 +5450,26 @@ void DecodeCM108(int Port, char * ptr) hid_device *handle = NULL; if (strlen(ptr) > 16) - CM108Device = _strdup(ptr); + { + path_to_open = _strdup(ptr); + + handle = hid_open_path(path_to_open); + + if (handle) + { + hid_close(handle); + CM108Device = _strdup(path_to_open); + } + else + { + char msg[128]; + sprintf(msg,"Port %d Unable to open CM108 device %s", Port, path_to_open); + WritetoConsole(msg); + } + } + + + else { VID = strtol(ptr, &next, 0); -- cgit v1.2.3