summaryrefslogtreecommitdiff
path: root/RigControl.c
diff options
context:
space:
mode:
authorDave Hibberd <d@vehibberd.com>2023-08-28 20:39:34 +0100
committerDave Hibberd <d@vehibberd.com>2023-08-28 20:39:34 +0100
commit95a6ab069f03d9a60b3f0a4b3f9ed0607f6e9ad6 (patch)
treebd7950d9d1dfc1771f5f07ec21ff39d0848a49c2 /RigControl.c
parent055c1c18916113a130523e71002ef2d48f0f2ace (diff)
parent084ecb74f6007abbb7e1578675964ac9352ef822 (diff)
Merge branch 'upstream/latest' into debian/latest
Diffstat (limited to 'RigControl.c')
-rw-r--r--RigControl.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/RigControl.c b/RigControl.c
index 6a7d026..83be639 100644
--- a/RigControl.c
+++ b/RigControl.c
@@ -3592,7 +3592,7 @@ ok:
else
{
if (!PORT->AutoPoll)
- SendResponse(RIG->Session, "Frequency Set OK");
+ SendResponse(RIG->Session, "Frequency Set OK");
PORT->Timeout = 0;
}
@@ -5286,6 +5286,7 @@ void DecodeCM108(int Port, char * ptr)
char * next;
int32_t VID = 0, PID = 0;
char product[256];
+ char sernum[256] = "NULL";
struct hid_device_info *devs, *cur_dev;
const char *path_to_open = NULL;
@@ -5306,11 +5307,13 @@ void DecodeCM108(int Port, char * ptr)
while (cur_dev)
{
wcstombs(product, cur_dev->product_string, 255);
+ if (cur_dev->serial_number)
+ wcstombs(sernum, cur_dev->serial_number, 255);
if (product)
- Debugprintf("HID Device %s VID %X PID %X %s", product, cur_dev->vendor_id, cur_dev->product_id, cur_dev->path);
+ Debugprintf("HID Device %s VID %X PID %X Ser %s %s", product, cur_dev->vendor_id, cur_dev->product_id, sernum, cur_dev->path);
else
- Debugprintf("HID Device %s VID %X PID %X %s", "Missing Product", cur_dev->vendor_id, cur_dev->product_id, cur_dev->path);
+ Debugprintf("HID Device %s VID %X PID %X Ser %s %s", "Missing Product", cur_dev->vendor_id, cur_dev->product_id, sernum, cur_dev->path);
if (cur_dev->vendor_id == VID && cur_dev->product_id == PID)
path_to_open = cur_dev->path;