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.
This commit is contained in:
Mark Pizzolato 2016-04-07 10:09:30 -07:00
parent cb96abef96
commit ed4631b8e9

View file

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