From 2e49fb473dd6cb779eadb8899af19f0988a987e3 Mon Sep 17 00:00:00 2001 From: kpetersn Date: Mon, 9 Apr 2018 13:25:40 -0500 Subject: [PATCH] Removed unused getInfo() calls. --- motorApp/AMCISrc/ANF2Driver.cpp | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/motorApp/AMCISrc/ANF2Driver.cpp b/motorApp/AMCISrc/ANF2Driver.cpp index f45020d9..f4db66cc 100644 --- a/motorApp/AMCISrc/ANF2Driver.cpp +++ b/motorApp/AMCISrc/ANF2Driver.cpp @@ -347,9 +347,6 @@ ANF2Axis::ANF2Axis(ANF2Controller *pC, int axisNo, epicsInt32 config, epicsInt32 epicsThreadSleep(0.1); - // Read data that is likely to be stale - //getInfo(); - // Clear the command/configuration register (a good thing to do but doesn't appear to be necessary) //status = pC_->writeReg32Array(axisNo_, zeroReg_, 5, DEFAULT_CONTROLLER_TIMEOUT); @@ -371,9 +368,6 @@ ANF2Axis::ANF2Axis(ANF2Controller *pC, int axisNo, epicsInt32 config, epicsInt32 // Delay epicsThreadSleep(0.05); - // Read the configuration? Or maybe the command registers? - //getInfo(); - // Parse the configuration (mostly for asynReport purposes) // MSW CaptInput_ = (config & (0x1 << 16)) >> 16; @@ -410,9 +404,6 @@ ANF2Axis::ANF2Axis(ANF2Controller *pC, int axisNo, epicsInt32 config, epicsInt32 // Delay //epicsThreadSleep(1.0); - // Read the command registers - //getInfo(); - // Tell the driver the axis has been created pC_->axesCreated_ += 1; @@ -545,19 +536,16 @@ void ANF2Axis::reconfig(epicsInt32 value) //confReg[CONFIG_REG_4] = 0x0; epicsThreadSleep(0.05); - getInfo(); // Send the new config status = pC_->writeReg32Array(axisNo_, confReg_, 5, DEFAULT_CONTROLLER_TIMEOUT); epicsThreadSleep(0.05); - getInfo(); // Set the position to clear the invalid position error setPosition(value); epicsThreadSleep(0.05); - getInfo(); } */ @@ -947,8 +935,6 @@ asynStatus ANF2Axis::poll(bool *moving) return asynSuccess; } - //getInfo(); - // Force a read operation //printf(" . . . . . Calling pasynInt32SyncIO->write\n"); //printf("Calling pasynInt32SyncIO->write(pasynUserForceRead_, 1, TIMEOUT), pasynUserForceRead_->reason=%d\n", pasynUserForceRead_->reason); @@ -956,8 +942,6 @@ asynStatus ANF2Axis::poll(bool *moving) //printf(" . . . . . status = %d\n", status); // if status goto end - //getInfo(); - // Read the current motor position // //readReg32(int reg, epicsInt32 *combo, double timeout)