Skip to content

Commit c05669a

Browse files
committed
Allow longer Windows PTT HID name.
1 parent cae4680 commit c05669a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/cm108.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,9 @@ static void substr_se (char *dest, const char *src, int start, int endp1)
260260
// Maximum length of name for PTT HID.
261261
// For Linux, this was originally 17 to handle names like /dev/hidraw3.
262262
// Windows has more complicated names. The longest I saw was 95 but longer have been reported.
263+
// Then we have this https://groups.io/g/direwolf/message/9622 where 127 is not enough.
263264

264-
#define MAXX_HIDRAW_NAME_LEN 128
265+
#define MAXX_HIDRAW_NAME_LEN 150
265266

266267
/*
267268
* Result of taking inventory of USB soundcards and USB HIDs.

0 commit comments

Comments
 (0)