From e1947362067bf9afa81b3d2e5b7ed111841cd98b Mon Sep 17 00:00:00 2001 From: smathis Date: Tue, 17 Jun 2025 09:39:12 +0200 Subject: [PATCH] Fixed bug in char array getter --- src/sinqAxis.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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{}); } /**