Updated sinqMotor to fix segfault and improved docs

This commit is contained in:
2025-12-23 11:47:12 +01:00
parent 6adca95ade
commit 7e7b8f486c
2 changed files with 3 additions and 5 deletions

View File

@@ -327,7 +327,7 @@ asynStatus masterMacsAxis::doPoll(bool *moving) {
// =========================================================================
// Does the axis need to be intialized?
// Does the axis need to be initialized?
if (needInit()) {
// Perform the rest of the poll, but remember if sth. failed in the init.
poll_status = init();
@@ -953,9 +953,7 @@ asynStatus masterMacsAxis::enable(bool on) {
doPoll(&moving);
// If the axis is currently moving, it cannot be disabled. Ignore the
// command and inform the user. We check the last known status of the
// axis instead of "moving", since status -6 is also moving, but the
// motor can actually be disabled in this state!
// command and inform the user.
if (moving) {
asynPrint(pC_->pasynUser(), ASYN_TRACE_ERROR,
"Controller \"%s\", axis %d => %s, line %d:\nAxis is not "