From ed4631b8e9a43a64d723c518e73f86fe9f40a471 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Thu, 7 Apr 2016 10:09:30 -0700 Subject: [PATCH] TMXR: Fix RESTORE for full modem lines connected to serial ports Full modem lines depend on the simulated OS to fully configure the line parameters (speed, parity, etc.), so setting line speed during a normal attach violates that behavior. However, when a RESTORE operation is being performed, we are obliged to restore the OS set line parameters which we know were already set by the simulated OS. --- sim_tmxr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sim_tmxr.c b/sim_tmxr.c index 026f893e..3a9900b2 100644 --- a/sim_tmxr.c +++ b/sim_tmxr.c @@ -2442,7 +2442,7 @@ while (*tptr) { serport = sim_open_serial (destination, NULL, &r); if (serport != INVALID_HANDLE) { sim_close_serial (serport); - if (strchr (destination, ';') && mp->modem_control) + if (strchr (destination, ';') && mp->modem_control && !(sim_switches & SIM_SW_REST)) return sim_messagef (SCPE_ARG, "Serial line parameters must be set within simulated OS: %s\n", 1 + strchr (destination, ';')); } else {