Fix to support multiplexer devices which call tmxr_open_master directly instead of tmxr_attach so that the resulting TMXR will be in the open multiplexer list
This commit is contained in:
parent
44886f919b
commit
1eb15fc917
1 changed files with 5 additions and 2 deletions
|
@ -417,6 +417,7 @@ static BITFIELD tmxr_modem_bits[] = {
|
|||
|
||||
/* Local routines */
|
||||
|
||||
static void tmxr_add_to_open_list (TMXR* mux);
|
||||
|
||||
/* Initialize the line state.
|
||||
|
||||
|
@ -2054,6 +2055,8 @@ while (*tptr) {
|
|||
r = SCPE_OK;
|
||||
}
|
||||
}
|
||||
if (r == SCPE_OK)
|
||||
tmxr_add_to_open_list (mp);
|
||||
return r;
|
||||
}
|
||||
|
||||
|
@ -2714,7 +2717,7 @@ else
|
|||
return SCPE_OK;
|
||||
}
|
||||
|
||||
static void _tmxr_add_to_open_list (TMXR* mux)
|
||||
static void tmxr_add_to_open_list (TMXR* mux)
|
||||
{
|
||||
int i;
|
||||
t_bool found = FALSE;
|
||||
|
@ -2798,7 +2801,7 @@ uptr->dynflags |= TMUF_NOASYNCH; /* tag as no asynch */
|
|||
if (mp->dptr == NULL) /* has device been set? */
|
||||
mp->dptr = find_dev_from_unit (uptr); /* no, so set device now */
|
||||
|
||||
_tmxr_add_to_open_list (mp);
|
||||
tmxr_add_to_open_list (mp);
|
||||
return SCPE_OK;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue