From c9f9563c77030c9aaa8edcfc096063d3eb048d9c Mon Sep 17 00:00:00 2001 From: Ron Sluiter Date: Fri, 30 Nov 2012 22:57:36 +0000 Subject: [PATCH] Terminate UU command argument with a ';' character. Fixes "Command error" with MAXv ver:1.41 firmware. --- motorApp/OmsSrc/devOmsCom.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/motorApp/OmsSrc/devOmsCom.cc b/motorApp/OmsSrc/devOmsCom.cc index 4e67f6b9..36b49c86 100644 --- a/motorApp/OmsSrc/devOmsCom.cc +++ b/motorApp/OmsSrc/devOmsCom.cc @@ -1,6 +1,6 @@ /* FILENAME... devOmsCom.cc -USAGE... Data and functions common to all OMS device level support. +USAGE... Data and functions common to all OMS device level support. Version: $Revision$ Modified By: $Author$ @@ -68,6 +68,8 @@ HeadURL: $URL$ * .22 11-10-10 rls Error check for valid acceleration rate on STOP command. * .23 10-26-11 rls Use MAXv motor type to support MRES and ERES with * different polarity (signs). + * .24 11-29-12 rls Terminate UU command argument with a ';' character. + * Fixes "Command error" with MAXv ver:1.41 firmware. * */ @@ -511,7 +513,7 @@ errorexit: errMessage(-1, "Invalid device directive"); if (MAXv == true && parms[0] == parms[1]) sprintf(buffer, " UF"); else - sprintf(buffer, " UU%f", parms[0]/parms[1]); + sprintf(buffer, " UU%f;", parms[0]/parms[1]); strcat(motor_call->message, buffer); break;