From bbbb958c3fccf1eb8a1ee78278bc1016c33bfab8 Mon Sep 17 00:00:00 2001 From: MarkRivers Date: Mon, 21 Dec 2009 17:13:36 +0000 Subject: [PATCH] Bug fixes --- motorApp/MotorSimSrc/motorSimDriver.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/motorApp/MotorSimSrc/motorSimDriver.cpp b/motorApp/MotorSimSrc/motorSimDriver.cpp index f9fbed6f..4647f96b 100644 --- a/motorApp/MotorSimSrc/motorSimDriver.cpp +++ b/motorApp/MotorSimSrc/motorSimDriver.cpp @@ -141,7 +141,7 @@ motorSimAxis * motorSimController::getAxis(asynUser *pasynUser) int axis; motorSimAxis *pAxis; - getAddress(pasynUser, "motorSimController::getAxis", &axis); + getAddress(pasynUser, &axis); pAxis = this->pAxes[axis]; return(pAxis); } @@ -370,7 +370,7 @@ asynStatus motorSimController::configAxis(int axis, int hiHardLimit, int lowHard pAxis->hiHardLimit = hiHardLimit; pAxis->lowHardLimit = lowHardLimit; pAxis->home = home; - setIntegerParam(axis, motorPosition, start); + pAxis->enc_offset = start; return(asynSuccess); } @@ -537,7 +537,7 @@ motorSimController::motorSimController(const char *portName, int numAxes, int pr for (axis=0; axispAxes[axis] = pAxis; - setIntegerParam(axis, this->motorPosition, DEFAULT_START); + setDoubleParam(axis, this->motorPosition, DEFAULT_START); } this->motorThread = epicsThreadCreate( "motorSimThread",