1
0
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:
Mark Pizzolato
2018-04-06 04:12:38 -07:00
parent a47c04bcac
commit 81bcd6d319
3 changed files with 32 additions and 13 deletions

View File

@@ -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 */