Skip to content

Commit 33a34f3

Browse files
committed
Issue 104. Allow much longer name for PTT serial port name.
1 parent c23ab04 commit 33a34f3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

audio.h

+4-1
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,11 @@ struct audio_s {
193193

194194
ptt_method_t ptt_method; /* none, serial port, GPIO, LPT, HAMLIB. */
195195

196-
char ptt_device[20]; /* Serial device name for PTT. e.g. COM1 or /dev/ttyS0 */
196+
char ptt_device[100]; /* Serial device name for PTT. e.g. COM1 or /dev/ttyS0 */
197197
/* Also used for HAMLIB. Could be host:port when model is 1. */
198+
/* For years, 20 characters was plenty and then along comes this crazy name: */
199+
/* /dev/serial/by-id/usb-Prolific_Technology_Inc._USB-Serial_Controller_D-if00-port0 */
200+
/* Issue 104, changed to 100 bytes in version 1.5. */
198201

199202
ptt_line_t ptt_line; /* Control line when using serial port. PTT_LINE_RTS, PTT_LINE_DTR. */
200203
ptt_line_t ptt_line2; /* Optional second one: PTT_LINE_NONE when not used. */

0 commit comments

Comments
 (0)