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:
Mark Pizzolato 2013-05-24 17:53:12 -07:00
parent 44886f919b
commit 1eb15fc917

View file

@ -417,6 +417,7 @@ static BITFIELD tmxr_modem_bits[] = {
/* Local routines */ /* Local routines */
static void tmxr_add_to_open_list (TMXR* mux);
/* Initialize the line state. /* Initialize the line state.
@ -2054,6 +2055,8 @@ while (*tptr) {
r = SCPE_OK; r = SCPE_OK;
} }
} }
if (r == SCPE_OK)
tmxr_add_to_open_list (mp);
return r; return r;
} }
@ -2714,7 +2717,7 @@ else
return SCPE_OK; return SCPE_OK;
} }
static void _tmxr_add_to_open_list (TMXR* mux) static void tmxr_add_to_open_list (TMXR* mux)
{ {
int i; int i;
t_bool found = FALSE; t_bool found = FALSE;
@ -2798,7 +2801,7 @@ uptr->dynflags |= TMUF_NOASYNCH; /* tag as no asynch */
if (mp->dptr == NULL) /* has device been set? */ if (mp->dptr == NULL) /* has device been set? */
mp->dptr = find_dev_from_unit (uptr); /* no, so set device now */ 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; return SCPE_OK;
} }