mirror of
https://github.com/Binary-Coalescence/motorDSM.git
synced 2025-08-04 21:55:40 -05:00
Corrected compiler error when passing Asyn parameter(s).
This commit is contained in:
@@ -263,8 +263,7 @@ STATIC int set_status(int card, int signal)
|
||||
status.Bits.RA_DONE | status.Bits.RA_PROBLEM) ? 1 : 0;
|
||||
|
||||
/* Test for post-move string. */
|
||||
if ((status.Bits.RA_DONE || ls_active == true) && nodeptr != 0 &&
|
||||
nodeptr->postmsgptr != 0)
|
||||
if ((status.Bits.RA_DONE || ls_active == true) && nodeptr != 0 && nodeptr->postmsgptr != 0)
|
||||
{
|
||||
send_mess(card, nodeptr->postmsgptr, (char) NULL);
|
||||
/* The MCB4B always sends back a response, read it and discard */
|
||||
@@ -284,7 +283,7 @@ STATIC int set_status(int card, int signal)
|
||||
STATIC RTN_STATUS send_mess(int card, const char *com, char *name)
|
||||
{
|
||||
struct MCB4Bcontroller *cntrl;
|
||||
int nwrite;
|
||||
size_t nwrite;
|
||||
|
||||
/* Check that card exists */
|
||||
if (!motor_state[card])
|
||||
@@ -313,7 +312,7 @@ STATIC RTN_STATUS send_mess(int card, const char *com, char *name)
|
||||
STATIC int recv_mess(int card, char *com, int flag)
|
||||
{
|
||||
double timeout;
|
||||
int nread=0;
|
||||
size_t nread=0;
|
||||
asynStatus status;
|
||||
struct MCB4Bcontroller *cntrl;
|
||||
int flush;
|
||||
@@ -341,7 +340,8 @@ STATIC int recv_mess(int card, char *com, int flag)
|
||||
status = pasynOctetSyncIO->read(cntrl->pasynUser, com, MAX_MSG_SIZE,
|
||||
timeout, &nread, &eomReason);
|
||||
|
||||
if (nread < 1) com[0] = '\0';
|
||||
if (nread < 1)
|
||||
com[0] = '\0';
|
||||
|
||||
if (nread > 0) {
|
||||
Debug(2, "recv_mess: card %d, message = \"%s\"\n",\
|
||||
@@ -457,7 +457,6 @@ STATIC int motor_init()
|
||||
cntrl = (struct MCB4Bcontroller *) brdptr->DevicePrivate;
|
||||
|
||||
/* Initialize communications channel */
|
||||
|
||||
success_rtn = pasynOctetSyncIO->connect(cntrl->port, 0, &cntrl->pasynUser, NULL);
|
||||
Debug(1, "motor_init, return from pasynOctetSyncIO->connect for port %s = %d, pasynUser=%p\n",\
|
||||
cntrl->port, success_rtn, cntrl->pasynUser);
|
||||
|
Reference in New Issue
Block a user