mirror of
https://github.com/simh/simh.git
synced 2026-05-01 13:56:02 +00:00
TMXR: Reject serial port attach config for programmaticly configured mux
This commit is contained in:
@@ -3086,8 +3086,8 @@ 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 && !(sim_switches & SIM_SW_REST))
|
if (strchr (destination, ';') && (mp->modem_control || mp->port_speed_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, "%sSerial line parameters can only be set within simulated OS: %s\n", dev_name, 1 + strchr (destination, ';'));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
char *eptr;
|
char *eptr;
|
||||||
|
|||||||
Reference in New Issue
Block a user