TMXR: Set character delay times when changing serial port speeds
As discussed in #504
This commit is contained in:
parent
7200825da1
commit
cfbfac03bb
1 changed files with 4 additions and 1 deletions
|
@ -1630,8 +1630,11 @@ t_stat tmxr_set_config_line (TMLN *lp, CONST char *config)
|
|||
t_stat r;
|
||||
|
||||
tmxr_debug_trace_line (lp, "tmxr_set_config_line()");
|
||||
if (lp->serport)
|
||||
if (lp->serport) {
|
||||
r = sim_config_serial (lp->serport, config);
|
||||
if (r == SCPE_OK)
|
||||
tmxr_set_line_speed (lp, config);
|
||||
}
|
||||
else {
|
||||
lp->serconfig = (char *)realloc (lp->serconfig, 1 + strlen (config));
|
||||
strcpy (lp->serconfig, config);
|
||||
|
|
Loading…
Add table
Reference in a new issue