From 8bb81b17163c70dd003974f73b1bec15b01f25f8 Mon Sep 17 00:00:00 2001 From: smathis Date: Tue, 22 Jul 2025 17:13:09 +0200 Subject: [PATCH] Fixed wrong comments --- src/masterMacsAxis.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/masterMacsAxis.cpp b/src/masterMacsAxis.cpp index b16ed76..cf1f7ae 100644 --- a/src/masterMacsAxis.cpp +++ b/src/masterMacsAxis.cpp @@ -808,20 +808,19 @@ asynStatus masterMacsAxis::doReset() { asynStatus status = asynSuccess; - // Reset errors + // Reset the controller ("node reset") status = pC_->write(axisNo_, 16, ""); if (status != asynSuccess) { setAxisParamChecked(this, motorStatusProblem, true); } - // Reset the controller + // Reset any errors in the controller status = pC_->write(axisNo_, 17, ""); if (status != asynSuccess) { setAxisParamChecked(this, motorStatusProblem, true); } - // Reset the driver to idle state and move out of the handshake wait loop, - // if we're currently inside it. + // Move out of the handshake wait loop, if we're currently inside it. pMasterMacsA_->waitForHandshake = false; return status;