1
0
mirror of https://github.com/PDP-10/klh10.git synced 2026-02-22 15:18:29 +00:00

Stop CH11 from spontaneously retransmitting last pkt

by noting that the output buffer was consumed on transmission done.
This commit is contained in:
Björn Victor
2020-08-28 13:32:51 +02:00
parent b014407ffa
commit c2d341945f

View File

@@ -1081,6 +1081,13 @@ ch_ogo(register struct ch11 *ch)
static void
ch_odone(register struct ch11 *ch)
{
struct dpchaos_s *dpc = (struct dpchaos_s *)ch->ch_dp.dp_adr;
// note we consumed the buffer
if (ch->ch_sbuf)
ch->ch_optr = ch->ch_sbuf + dpc->dpchaos_outoff; // DPCHUDP_DATAOFFSET;
else
ch->ch_optr = NULL;
REG(ch) |= CH_TDN; /* Note it's done */
ch->ch_outactf = TRUE; /* OK to send another */
ch_oint(ch); /* Send output interrupt! */