Updated error message

This commit is contained in:
2026-03-06 14:26:13 +01:00
parent e7ce44fdb6
commit f0fdedfd5a
2 changed files with 6 additions and 6 deletions
+5 -5
View File
@@ -214,6 +214,11 @@ asynStatus turboPmacAxis::init() {
&motorVmax, &motorVelocity, &motorAccel, &acoDelay,
&counts_to_eu, &deadband_counts, &hasBeenHomed);
if (nvals != 8) {
return pC_->couldNotParseResponse(command, response, axisNo_,
__PRETTY_FUNCTION__, __LINE__);
}
// The acoDelay is given in milliseconds -> Convert to seconds, rounded
// up
setOffsetMovTimeout(std::ceil(acoDelay / 1000.0));
@@ -223,11 +228,6 @@ asynStatus turboPmacAxis::init() {
// here to mm/s^2.
motorAccel = motorAccel * 1000;
if (nvals != 7) {
return pC_->couldNotParseResponse(command, response, axisNo_,
__PRETTY_FUNCTION__, __LINE__);
}
// Store these values in the parameter library
status = setMotorPosition(motorPos);
if (status != asynSuccess) {