1
0
mirror of https://github.com/simh/simh.git synced 2026-02-09 01:31:39 +00:00

Fixed console serial port connection checking

This commit is contained in:
Mark Pizzolato
2012-12-18 15:41:34 -08:00
parent 37b73c40a6
commit 1370ad6a2c
2 changed files with 6 additions and 1 deletions

View File

@@ -774,7 +774,11 @@ t_stat sim_check_console (int32 sec)
{
int32 c, i;
if (sim_con_tmxr.master == 0) /* not Telnet? done */
if (sim_con_ldsc.serport)
if (tmxr_poll_conn (&sim_con_tmxr) >= 0)
sim_con_ldsc.rcve = 1; /* rcv enabled */
if ((sim_con_tmxr.master == 0) || /* serial console or not Telnet? done */
(sim_con_ldsc.serport))
return SCPE_OK;
if (sim_con_ldsc.conn || sim_con_ldsc.txbfd) { /* connected or buffered ? */
tmxr_poll_rx (&sim_con_tmxr); /* poll (check disconn) */