From ea3be21cb2e82f345f13df5d753eb5347b296e53 Mon Sep 17 00:00:00 2001 From: Bryan Biedenkapp Date: Sat, 2 Apr 2022 17:07:18 -0400 Subject: [PATCH] fix bug where the PTY port would be treated as invalid; --- host/Host.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host/Host.cpp b/host/Host.cpp index d34024c1..535092cb 100644 --- a/host/Host.cpp +++ b/host/Host.cpp @@ -1574,7 +1574,7 @@ bool Host::createModem() if (portType == NULL_PORT) { modemPort = new port::ModemNullPort(); } - else if (portType == UART_PORT || portType == UDP_PORT) { + else if (portType == UART_PORT || portType == UDP_PORT || portType == PTY_PORT) { port::SERIAL_SPEED serialSpeed = port::SERIAL_115200; switch (uartSpeed) { case 1200: