From 33a34f3466dda77cb5de25f0db2441ccee710bd2 Mon Sep 17 00:00:00 2001 From: wb2osz Date: Sun, 8 Oct 2017 12:50:07 -0400 Subject: [PATCH] Issue 104. Allow much longer name for PTT serial port name. --- audio.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/audio.h b/audio.h index 71d3751..6afda51 100644 --- a/audio.h +++ b/audio.h @@ -193,8 +193,11 @@ struct audio_s { ptt_method_t ptt_method; /* none, serial port, GPIO, LPT, HAMLIB. */ - char ptt_device[20]; /* Serial device name for PTT. e.g. COM1 or /dev/ttyS0 */ + char ptt_device[100]; /* Serial device name for PTT. e.g. COM1 or /dev/ttyS0 */ /* Also used for HAMLIB. Could be host:port when model is 1. */ + /* For years, 20 characters was plenty and then along comes this crazy name: */ + /* /dev/serial/by-id/usb-Prolific_Technology_Inc._USB-Serial_Controller_D-if00-port0 */ + /* Issue 104, changed to 100 bytes in version 1.5. */ ptt_line_t ptt_line; /* Control line when using serial port. PTT_LINE_RTS, PTT_LINE_DTR. */ ptt_line_t ptt_line2; /* Optional second one: PTT_LINE_NONE when not used. */