Fixed bug

This commit is contained in:
2025-07-01 10:05:39 +02:00
parent 09897b6125
commit 64b932c3ae

View File

@ -815,14 +815,16 @@ asynStatus masterMacsAxis::stop(double acceleration) {
asynStatus masterMacsAxis::doReset() {
asynStatus status = asynSuccess;
// Reset errors
asynStatus status = pC_->write(axisNo_, 16, "");
status = pC_->write(axisNo_, 16, "");
if (status != asynSuccess) {
setAxisParamChecked(this, motorStatusProblem, true);
}
// Reset the controller
asynStatus status = pC_->write(axisNo_, 17, "");
status = pC_->write(axisNo_, 17, "");
if (status != asynSuccess) {
setAxisParamChecked(this, motorStatusProblem, true);
}