From 1eb15fc9172fa2092aee6388f8883e0a27be4a64 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Fri, 24 May 2013 17:53:12 -0700 Subject: [PATCH] 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 --- sim_tmxr.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sim_tmxr.c b/sim_tmxr.c index 1739d25c..38802e55 100644 --- a/sim_tmxr.c +++ b/sim_tmxr.c @@ -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; }