Factored out error handling in a dedicated function
This makes it possible to reuse the error handling of the base axis in derived axis types (e.g. seleneGuide driver).
This commit is contained in:
2
Makefile
2
Makefile
@@ -14,7 +14,7 @@ REQUIRED+=sinqMotor
|
||||
motorBase_VERSION=7.2.2
|
||||
|
||||
# Specify the version of sinqMotor we want to build against
|
||||
sinqMotor_VERSION=mathis_s
|
||||
sinqMotor_VERSION=0.11.0
|
||||
|
||||
# These headers allow to depend on this library for derived drivers.
|
||||
HEADERS += src/turboPmacAxis.h
|
||||
|
||||
@@ -1284,7 +1284,10 @@ asynStatus turboPmacAxis::enable(bool on) {
|
||||
asynStatus pl_status = asynSuccess;
|
||||
|
||||
bool moving = false;
|
||||
doPoll(&moving);
|
||||
rw_status = doPoll(&moving);
|
||||
if (rw_status != asynSuccess) {
|
||||
return rw_status;
|
||||
}
|
||||
|
||||
// =========================================================================
|
||||
|
||||
|
||||
Reference in New Issue
Block a user