diff options
| author | Dave Hibberd <hibby@debian.org> | 2025-09-04 22:52:15 +0100 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2025-09-04 22:52:15 +0100 |
| commit | d0f299bc02fd41b1b30843f4ac8ff2c198ae741e (patch) | |
| tree | b4ad91b12abced1b9e89566d09f44472204f4214 /RigControl.c | |
| parent | 78f78927abe92a2c305117faa16b3e336f94f207 (diff) | |
| parent | 7c796758d1b65d4d7585c90ba71b1fb339a4d283 (diff) | |
Update upstream source from tag 'upstream/6.0.25.1+repack'
Update to upstream version '6.0.25.1+repack'
with Debian dir 5c600492d37f157e53545494f5a022c05441e400
Diffstat (limited to 'RigControl.c')
| -rw-r--r-- | RigControl.c | 21 |
1 files changed, 20 insertions, 1 deletions
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);
|
