From bd621f50bf6364778c5395caa929f7ff7b0d3f82 Mon Sep 17 00:00:00 2001 From: Seth Morabito Date: Wed, 11 Apr 2018 18:38:59 -0700 Subject: [PATCH] 3b2: Call tmxr routines in IU reset Previously, tmxr_set_line_unit() and tmxr_set_line_output_unit() were being called in the attach routine. These probably belong in the reset routine instead. --- 3B2/3b2_iu.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/3B2/3b2_iu.c b/3B2/3b2_iu.c index 8f328628..a68bd412 100644 --- a/3B2/3b2_iu.c +++ b/3B2/3b2_iu.c @@ -251,8 +251,6 @@ t_stat contty_attach(UNIT *uptr, CONST char *cptr) TMLN *lp; tmxr_set_modem_control_passthru(&contty_desc); - tmxr_set_line_unit(&contty_desc, 0, contty_rcv_unit); - tmxr_set_line_output_unit(&contty_desc, 0, contty_xmt_unit); r = tmxr_attach(&contty_desc, uptr, cptr); if (r != SCPE_OK) { @@ -343,10 +341,9 @@ t_stat contty_reset(DEVICE *dtpr) } tmxr_set_port_speed_control(&contty_desc); - - /* tmxr_set_line_unit(&contty_desc, 0, contty_rcv_unit); */ - /* tmxr_set_line_output_unit(&contty_desc, 0, contty_xmt_unit); */ - /* tmxr_set_console_units(&tti_unit, &tto_unit); */ + tmxr_set_line_unit(&contty_desc, 0, contty_rcv_unit); + tmxr_set_line_output_unit(&contty_desc, 0, contty_xmt_unit); + tmxr_set_console_units(&tti_unit, &tto_unit); memset(&iu_state, 0, sizeof(IU_STATE)); memset(&iu_contty, 0, sizeof(IU_PORT));