From c05669a82ba7bf9cb10634a8a7c248ea3219b35e Mon Sep 17 00:00:00 2001 From: wb2osz Date: Sun, 16 Jun 2024 01:30:57 +0100 Subject: [PATCH] Allow longer Windows PTT HID name. --- src/cm108.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cm108.c b/src/cm108.c index ff3ff79..787e7bb 100644 --- a/src/cm108.c +++ b/src/cm108.c @@ -260,8 +260,9 @@ static void substr_se (char *dest, const char *src, int start, int endp1) // Maximum length of name for PTT HID. // For Linux, this was originally 17 to handle names like /dev/hidraw3. // Windows has more complicated names. The longest I saw was 95 but longer have been reported. +// Then we have this https://groups.io/g/direwolf/message/9622 where 127 is not enough. -#define MAXX_HIDRAW_NAME_LEN 128 +#define MAXX_HIDRAW_NAME_LEN 150 /* * Result of taking inventory of USB soundcards and USB HIDs.