Fixed some compile-time warnings
This commit is contained in:
@@ -36,6 +36,7 @@ el734Controller::el734Controller(const char *portName,
|
||||
pEl734C_(std::make_unique<el734ControllerImpl>((el734ControllerImpl){
|
||||
.comTimeout = comTimeout,
|
||||
.lastResponse = {0},
|
||||
.pasynInt32SyncIOipPort = nullptr,
|
||||
.limFromHardware = 0,
|
||||
}))
|
||||
|
||||
@@ -127,10 +128,8 @@ asynStatus el734Controller::writeRead(int axisNo, const char *command,
|
||||
|
||||
// Definition of local variables.
|
||||
asynStatus status = asynSuccess;
|
||||
asynStatus timeoutStatus = asynSuccess;
|
||||
char drvMessageText[MAXBUF_] = {0};
|
||||
int motorStatusProblem = 0;
|
||||
int numReceivedResponses = 0;
|
||||
|
||||
/*
|
||||
asyn defines the following reasons for an end-of-message coming from the MCU
|
||||
@@ -354,8 +353,9 @@ static const iocshArg CreateControllerArg5 = {"Communication timeout (s)",
|
||||
static const iocshArg *const CreateControllerArgs[] = {
|
||||
&CreateControllerArg0, &CreateControllerArg1, &CreateControllerArg2,
|
||||
&CreateControllerArg3, &CreateControllerArg4, &CreateControllerArg5};
|
||||
static const iocshFuncDef configEl734CreateController = {"el734Controller", 6,
|
||||
CreateControllerArgs};
|
||||
static const iocshFuncDef configEl734CreateController = {
|
||||
"el734Controller", 6, CreateControllerArgs,
|
||||
"Create a new instance of an EL734 controller."};
|
||||
static void configEl734CreateControllerCallFunc(const iocshArgBuf *args) {
|
||||
el734CreateController(args[0].sval, args[1].sval, args[2].ival,
|
||||
args[3].dval, args[4].dval, args[5].dval);
|
||||
|
||||
Reference in New Issue
Block a user