TMXR: Add default debug bits for SEND/EXPECT operations
This commit is contained in:
parent
5d9aee0d14
commit
7ab9f020bd
2 changed files with 11 additions and 0 deletions
|
@ -3289,6 +3289,7 @@ return SCPE_OK;
|
||||||
t_stat tmxr_attach_ex (TMXR *mp, UNIT *uptr, char *cptr, t_bool async)
|
t_stat tmxr_attach_ex (TMXR *mp, UNIT *uptr, char *cptr, t_bool async)
|
||||||
{
|
{
|
||||||
t_stat r;
|
t_stat r;
|
||||||
|
int32 i;
|
||||||
|
|
||||||
r = tmxr_open_master (mp, cptr); /* open master socket */
|
r = tmxr_open_master (mp, cptr); /* open master socket */
|
||||||
if (r != SCPE_OK) /* error? */
|
if (r != SCPE_OK) /* error? */
|
||||||
|
@ -3312,6 +3313,14 @@ uptr->dynflags |= TMUF_NOASYNCH; /* tag as no asynch */
|
||||||
if (mp->dptr == NULL) /* has device been set? */
|
if (mp->dptr == NULL) /* has device been set? */
|
||||||
mp->dptr = find_dev_from_unit (uptr); /* no, so set device now */
|
mp->dptr = find_dev_from_unit (uptr); /* no, so set device now */
|
||||||
|
|
||||||
|
if (mp->dptr) {
|
||||||
|
for (i=0; i<mp->lines; i++) {
|
||||||
|
mp->ldsc[i].expect.dptr = mp->dptr;
|
||||||
|
mp->ldsc[i].expect.dbit = TMXR_DBG_EXP;
|
||||||
|
mp->ldsc[i].send.dptr = mp->dptr;
|
||||||
|
mp->ldsc[i].send.dbit = TMXR_DBG_SEND;
|
||||||
|
}
|
||||||
|
}
|
||||||
tmxr_add_to_open_list (mp);
|
tmxr_add_to_open_list (mp);
|
||||||
return SCPE_OK;
|
return SCPE_OK;
|
||||||
}
|
}
|
||||||
|
|
|
@ -75,6 +75,8 @@ typedef int SERHANDLE;
|
||||||
#define TMXR_DBG_TRC 0x0400000 /* Debug trace routine calls */
|
#define TMXR_DBG_TRC 0x0400000 /* Debug trace routine calls */
|
||||||
#define TMXR_DBG_PXMT 0x0800000 /* Debug Transmit Packet Data */
|
#define TMXR_DBG_PXMT 0x0800000 /* Debug Transmit Packet Data */
|
||||||
#define TMXR_DBG_PRCV 0x1000000 /* Debug Received Packet Data */
|
#define TMXR_DBG_PRCV 0x1000000 /* Debug Received Packet Data */
|
||||||
|
#define TMXR_DBG_EXP 0x2000000 /* Debug Expect Activities */
|
||||||
|
#define TMXR_DBG_SEND 0x4000000 /* Debug Send Activities */
|
||||||
|
|
||||||
/* Modem Control Bits */
|
/* Modem Control Bits */
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue