asked it to simplify the code
This commit is contained in:
@@ -36,8 +36,6 @@ struct turboPmacControllerImpl {
|
||||
// Timeout for the communication process in seconds
|
||||
double comTimeout;
|
||||
|
||||
char lastResponse[sinqController::MAXBUF_];
|
||||
|
||||
// User for writing int32 values to the port driver.
|
||||
asynUser *pasynInt32SyncIOipPort;
|
||||
|
||||
@@ -46,6 +44,8 @@ struct turboPmacControllerImpl {
|
||||
int readConfig;
|
||||
int flushHardware;
|
||||
int limFromHardware;
|
||||
|
||||
char lastResponse[sinqController::MAXBUF_];
|
||||
};
|
||||
#define NUM_turboPmac_DRIVER_PARAMS 5
|
||||
|
||||
@@ -65,12 +65,12 @@ turboPmacController::turboPmacController(const char *portName,
|
||||
pTurboPmacC_(
|
||||
std::make_unique<turboPmacControllerImpl>((turboPmacControllerImpl){
|
||||
.comTimeout = comTimeout,
|
||||
.lastResponse = {0},
|
||||
.pasynInt32SyncIOipPort = nullptr, // Populated in constructor
|
||||
.rereadEncoderPosition = 0, // Populated in constructor
|
||||
.readConfig = 0, // Populated in constructor
|
||||
.flushHardware = 0, // Populated in constructor
|
||||
.limFromHardware = 0, // Populated in constructor
|
||||
.lastResponse = {0},
|
||||
})) {
|
||||
// Initialization of local variables
|
||||
asynStatus status = asynSuccess;
|
||||
|
||||
Reference in New Issue
Block a user