mirror of
https://github.com/open-simh/simh.git
synced 2026-01-27 04:32:40 +00:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user