Updated sinqMotor to fix segfault and improved docs
This commit is contained in:
Submodule sinqMotor updated: 59a5ba452f...e234d05815
@@ -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 "
|
||||
|
||||
Reference in New Issue
Block a user