Changes in asynSyncIO->read for latest asyn

This commit is contained in:
MarkRivers
2004-07-30 04:09:11 +00:00
parent d6ffff666c
commit a963d6c388

View File

@@ -318,6 +318,7 @@ STATIC int recv_mess(int card, char *com, int flag)
int len=0; int len=0;
struct MCB4Bcontroller *cntrl; struct MCB4Bcontroller *cntrl;
int flush; int flush;
int eomReason;
/* Check that card exists */ /* Check that card exists */
if (!motor_state[card]) if (!motor_state[card])
@@ -338,7 +339,7 @@ STATIC int recv_mess(int card, char *com, int flag)
timeout = TIMEOUT; timeout = TIMEOUT;
} }
len = pasynSyncIO->read(cntrl->pasynUser, com, MAX_MSG_SIZE, len = pasynSyncIO->read(cntrl->pasynUser, com, MAX_MSG_SIZE,
"\r", 1, flush, timeout); "\r", 1, flush, timeout, &eomReason);
/* The response from the MCB4B is terminated with CR. Remove */ /* The response from the MCB4B is terminated with CR. Remove */
if (len < 1) com[0] = '\0'; if (len < 1) com[0] = '\0';