From 5eef01248cb8c1baee3b651d17847e7c28e74955 Mon Sep 17 00:00:00 2001 From: kpetersn Date: Tue, 20 Mar 2018 14:57:17 -0500 Subject: [PATCH] Removed configBits --- motorApp/AMCISrc/ANF2Driver.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/motorApp/AMCISrc/ANF2Driver.cpp b/motorApp/AMCISrc/ANF2Driver.cpp index 6bc7558a..b8e21f5e 100644 --- a/motorApp/AMCISrc/ANF2Driver.cpp +++ b/motorApp/AMCISrc/ANF2Driver.cpp @@ -311,8 +311,7 @@ ANF2Axis::ANF2Axis(ANF2Controller *pC, const char *ANF2ConfName, int axisNo, epi pC_(pC) { int status; - epicsInt32 configBits[2]; - + axisNo_ = axisNo; //this->axisNo_ = axisNo; @@ -346,16 +345,10 @@ ANF2Axis::ANF2Axis(ANF2Controller *pC, const char *ANF2ConfName, int axisNo, epi // Send the configuration (array) // assemble the configuration bits; set the start speed to a non-zero value (100), which is required for the configuration to be accepted - configBits[0] = config; - configBits[1] = 0x00000064; - registers_[0] = config; registers_[1] = 0x00000064; // Does the number of elements refer to the number of 16-bit elements? - //status = pasynInt32ArraySyncIO->write(pasynUserConfWrite_, configBits, 4, DEFAULT_CONTROLLER_TIMEOUT); - // Mabye do it this way in the future - //status = this->pC_->writeReg32Array(axisNo, CONFIG_MSW, configBits, 4, DEFAULT_CONTROLLER_TIMEOUT); // Write all the registers status = pasynInt32ArraySyncIO->write(pasynUserConfWrite_, registers_, 10, DEFAULT_CONTROLLER_TIMEOUT);