mirror of
https://github.com/Binary-Coalescence/motorDSM.git
synced 2025-08-04 21:55:40 -05:00
Changes in asynSyncIO->read for latest asyn
This commit is contained in:
@@ -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';
|
||||||
|
Reference in New Issue
Block a user