From 5642bb1089efb55315799c0c2ee3599fed1270a1 Mon Sep 17 00:00:00 2001 From: Mark Rivers Date: Tue, 28 Jan 2020 16:32:56 -0600 Subject: [PATCH] Initialize some parameters to avoid errors reading them --- motorApp/MotorSrc/asynMotorAxis.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/motorApp/MotorSrc/asynMotorAxis.cpp b/motorApp/MotorSrc/asynMotorAxis.cpp index 29878b68..eb61b5bc 100644 --- a/motorApp/MotorSrc/asynMotorAxis.cpp +++ b/motorApp/MotorSrc/asynMotorAxis.cpp @@ -60,6 +60,11 @@ asynMotorAxis::asynMotorAxis(class asynMotorController *pC, int axisNo) // Create the asynUser, connect to this axis pasynUser_ = pasynManager->createAsynUser(NULL, NULL); pasynManager->connectDevice(pasynUser_, pC->portName, axisNo); + + // Initialize some parameters + setIntegerParam(pC_->motorPowerAutoOnOff_, 0); + setDoubleParam(pC_->motorPowerOffDelay_, 0.); + setDoubleParam(pC_->motorPowerOnDelay_, 0.); } asynMotorAxis::~asynMotorAxis()