From e3572e1a9f149e8df5cf3482ca4cce47ae9274aa Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Mon, 2 Nov 2020 16:42:56 -0800 Subject: [PATCH] TMXR: Fix modem status bit retrieval to also return DTR and RTS The prior change disabled returning DTR and RTS which the documented interface was quite specific about actively returning. The only user of this API which actually cared about DTR and RTS was the in the pdp11_dmc module. As reported in #951 --- sim_tmxr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sim_tmxr.c b/sim_tmxr.c index d477b1c7..fa596d22 100644 --- a/sim_tmxr.c +++ b/sim_tmxr.c @@ -1746,7 +1746,7 @@ if ((lp->modembits != before_modem_bits) && (sim_deb && lp->mp && dptr)) { sim_debug (TMXR_DBG_MDM, dptr, " - Line %d - %p\n", (int)(lp-lp->mp->ldsc), lp->txb); } if (incoming_bits) - *incoming_bits = (lp->modembits & TMXR_MDM_INCOMING); + *incoming_bits = (lp->modembits & (TMXR_MDM_INCOMING | TMXR_MDM_DTR | TMXR_MDM_RTS)); if (lp->mp && lp->modem_control) { /* This API ONLY works on modem_control enabled multiplexer lines */ if ((bits_to_set | bits_to_clear) || incoming_bits) {/* Anything to do? */ if (lp->loopback) {