1
0
mirror of https://github.com/open-simh/simh.git synced 2026-01-17 08:44:08 +00:00

TMXR: Remove output unit from delay consideration after poll has nothing queued

The goal of the logic in _tmxr_activate_delay() is to properly schedule the next
poll activity considering input and/or output data rates that may be in effect.
We need to make sure that one more poll is scheduled after output data has
been sent since simulation logic may have deferred queuing output data for
other reasons and handles its reactivation in the same context that it polls for
output.
This commit is contained in:
Mark Pizzolato 2018-05-20 08:07:30 -07:00
parent b8978639e8
commit 584147fb64

View File

@ -2267,8 +2267,10 @@ for (i = 0; i < mp->lines; i++) { /* loop thru lines */
#endif
if ((lp->xmte == 0) &&
((lp->txbps == 0) ||
(lp->txnexttime <= sim_gtime ())))
(lp->txnexttime <= sim_gtime ()))) {
lp->xmte = 1; /* enable line transmit */
lp->txnexttime = 0.0;
}
}
} /* end for */
}