mirror of
https://github.com/simh/simh.git
synced 2026-04-16 00:21:35 +00:00
CONSOLE/SERIAL: Properly rate limit output to console port
When the console is connected to a serial port or telnet sessions enable speed setting, the bits being output are now paced a the desired speed. Multi-line mux I/O is also correctly rate limited on all lines. This should address the problems described in #545
This commit is contained in:
@@ -425,8 +425,9 @@ if (port == INVALID_HANDLE) {
|
||||
return port;
|
||||
}
|
||||
|
||||
status = (lp) ? tmxr_set_config_line (lp, config) /* set serial configuration */
|
||||
: sim_config_serial (port, config); /* set serial configuration */
|
||||
status = sim_config_serial (port, config); /* set serial configuration */
|
||||
if ((lp) && (status == SCPE_OK)) /* line specified? */
|
||||
status = tmxr_set_config_line (lp, config); /* set line speed parameters */
|
||||
|
||||
if (status != SCPE_OK) { /* port configuration error? */
|
||||
sim_close_serial (port); /* close the port */
|
||||
|
||||
Reference in New Issue
Block a user