mirror of
https://github.com/open-simh/simh.git
synced 2026-01-13 23:37:13 +00:00
Fixed console serial port connection checking
This commit is contained in:
parent
37b73c40a6
commit
1370ad6a2c
@ -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) */
|
||||
|
||||
@ -844,6 +844,7 @@ for (i = 0; i < mp->lines; i++) { /* check each line in se
|
||||
|
||||
if (lp->ser_connect_pending) {
|
||||
lp->ser_connect_pending = FALSE;
|
||||
lp->conn = TRUE;
|
||||
return i;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user