TMXR: Reject serial port attach config for programmaticly configured mux

This commit is contained in:
Mark Pizzolato 2022-02-03 11:14:09 -08:00
parent dd92be296c
commit dbc0ea4114

View file

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