From 180e94e3241b1ee7a75bdba4f67b2e250d0201e9 Mon Sep 17 00:00:00 2001 From: Bryan Biedenkapp Date: Tue, 1 Nov 2022 19:54:30 -0400 Subject: [PATCH] properly handle connecting to a PTY; --- host/Host.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/host/Host.cpp b/host/Host.cpp index 036f566b..fabdb1a3 100644 --- a/host/Host.cpp +++ b/host/Host.cpp @@ -2118,9 +2118,14 @@ bool Host::createModem() if (portType == PTY_PORT) { #if !defined(_WIN32) && !defined(_WIN64) +/* modemPort = new port::PseudoPTYPort(uartPort, serialSpeed, true); LogInfo(" PTY File: %s", uartPort.c_str()); LogInfo(" PTY Speed: %u", uartSpeed); +*/ + modemPort = new port::UARTPort(uartPort, serialSpeed, false); + LogInfo(" PTY Port: %s", uartPort.c_str()); + LogInfo(" PTY Speed: %u", uartSpeed); #else LogError(LOG_HOST, "Pseudo PTY is not supported on Windows!"); return false;