From 846e1247edda84cb2ebfcadd3e3e651df6f102f9 Mon Sep 17 00:00:00 2001 From: MarkRivers Date: Fri, 14 Dec 2012 17:58:48 +0000 Subject: [PATCH] Changed commands to turn off echoing to ECHO 4, which works on all controllers; minor changed to avoid compiler warnings --- motorApp/ACRSrc/ACRMotorDriver.cpp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/motorApp/ACRSrc/ACRMotorDriver.cpp b/motorApp/ACRSrc/ACRMotorDriver.cpp index 0ee7bc51..8e1f0737 100644 --- a/motorApp/ACRSrc/ACRMotorDriver.cpp +++ b/motorApp/ACRSrc/ACRMotorDriver.cpp @@ -42,7 +42,6 @@ ACRController::ACRController(const char *portName, const char *ACRPortName, int { int axis; asynStatus status; - ACRAxis *pAxis; static const char *functionName = "ACRController"; binaryInReg_ = 4096; @@ -63,10 +62,7 @@ ACRController::ACRController(const char *portName, const char *ACRPortName, int driverName, functionName); } // Turn off command echoing - sprintf(outString_, "BIT1792=0"); - writeController(); - // Turn off command prompt - sprintf(outString_, "BIT1794=1"); + sprintf(outString_, "ECHO 4"); writeController(); // Wait a short while so that any responses to the above commands have time to arrive so we can flush // them in the next writeReadController() @@ -77,7 +73,7 @@ ACRController::ACRController(const char *portName, const char *ACRPortName, int setUIntDigitalParam(0, ACRBinaryOut_, binaryOutRBV_, 0xFFFFFFFF); // Create the axis objects for (axis=0; axis