SCP: Fix reporting of console's buffering status. Fix parsing of MUX settings which were simply interpreted by matching a single token. Reported by Mark Bensen.
This commit is contained in:
parent
0432b3232d
commit
746e5ab88c
2 changed files with 5 additions and 3 deletions
|
@ -1289,10 +1289,10 @@ t_stat sim_show_cons_buff (FILE *st, DEVICE *dunused, UNIT *uunused, int32 flag,
|
|||
{
|
||||
if (cptr && (*cptr != 0))
|
||||
return SCPE_2MARG;
|
||||
if (!sim_con_tmxr.buffered)
|
||||
if (!sim_con_tmxr.ldsc->txbfd)
|
||||
fprintf (st, "Unbuffered\n");
|
||||
else
|
||||
fprintf (st, "Buffer Size = %d\n", sim_con_tmxr.buffered);
|
||||
fprintf (st, "Buffer Size = %d\n", sim_con_tmxr.ldsc->txbsz);
|
||||
return SCPE_OK;
|
||||
}
|
||||
|
||||
|
|
|
@ -2069,8 +2069,10 @@ SERHANDLE serport;
|
|||
char *tptr = cptr;
|
||||
t_bool nolog, notelnet, listennotelnet, modem_control, loopback, datagram, packet;
|
||||
TMLN *lp;
|
||||
t_stat r = SCPE_ARG;
|
||||
t_stat r = SCPE_OK;
|
||||
|
||||
if (*tptr == '\0')
|
||||
return SCPE_ARG;
|
||||
for (i = 0; i < mp->lines; i++) { /* initialize lines */
|
||||
lp = mp->ldsc + i;
|
||||
lp->mp = mp; /* set the back pointer */
|
||||
|
|
Loading…
Add table
Reference in a new issue