properly handle connecting to a PTY;

3.0-rcon_maint
Bryan Biedenkapp 3 years ago
parent 5089769240
commit 180e94e324

@ -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;

Loading…
Cancel
Save

Powered by TurnKey Linux.