diff --git a/src/sinqAxis.h b/src/sinqAxis.h index ba6069d..d9c6a34 100644 --- a/src/sinqAxis.h +++ b/src/sinqAxis.h @@ -709,9 +709,9 @@ template asynStatus getAxisParam(A *axis, C *controller, const char *indexName, int (C::*func)(), char (*readValue)[N], const char *callerFunctionName, int lineNumber) { - return getAxisParamImpl(axis, controller, indexName, func, - static_cast(readValue), callerFunctionName, - lineNumber, sizeof(readValue), TypeTag{}); + return getAxisParamImpl(axis, controller, indexName, func, *readValue, + callerFunctionName, lineNumber, sizeof(readValue), + TypeTag{}); } /**