Fixed bug in char array getter

This commit is contained in:
2025-06-17 09:39:12 +02:00
parent 30af284f5d
commit e194736206

View File

@ -709,9 +709,9 @@ template <typename A, typename C, size_t N>
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<char *>(readValue), callerFunctionName,
lineNumber, sizeof(readValue), TypeTag<char>{});
return getAxisParamImpl(axis, controller, indexName, func, *readValue,
callerFunctionName, lineNumber, sizeof(readValue),
TypeTag<char>{});
}
/**