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:
parent
cb96abef96
commit
ed4631b8e9
1 changed files with 1 additions and 1 deletions
|
@ -2442,7 +2442,7 @@ while (*tptr) {
|
||||||
serport = sim_open_serial (destination, NULL, &r);
|
serport = sim_open_serial (destination, NULL, &r);
|
||||||
if (serport != INVALID_HANDLE) {
|
if (serport != INVALID_HANDLE) {
|
||||||
sim_close_serial (serport);
|
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, ';'));
|
return sim_messagef (SCPE_ARG, "Serial line parameters must be set within simulated OS: %s\n", 1 + strchr (destination, ';'));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue