From 4b0031c3af7169f021560a00888b9c47461238e8 Mon Sep 17 00:00:00 2001 From: smathis Date: Thu, 15 May 2025 12:03:06 +0200 Subject: [PATCH] Fixed bug with readInt32 function --- src/masterMacsController.cpp | 3 ++- src/masterMacsController.h | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/masterMacsController.cpp b/src/masterMacsController.cpp index 904f38e..2e9e52d 100644 --- a/src/masterMacsController.cpp +++ b/src/masterMacsController.cpp @@ -468,7 +468,8 @@ asynStatus masterMacsController::parseResponse( return asynSuccess; } -asynStatus sinqController::readInt32(asynUser *pasynUser, epicsInt32 *value) { +asynStatus masterMacsController::readInt32(asynUser *pasynUser, + epicsInt32 *value) { // masterMacs can be disabled if (pasynUser->reason == motorCanDisable_) { *value = 1; diff --git a/src/masterMacsController.h b/src/masterMacsController.h index a3c34a1..2d48847 100644 --- a/src/masterMacsController.h +++ b/src/masterMacsController.h @@ -31,6 +31,15 @@ class masterMacsController : public sinqController { int numAxes, double movingPollPeriod, double idlePollPeriod, double comTimeout); + /** + * @brief Overloaded version of the sinqController version + * + * @param pasynUser + * @param value + * @return asynStatus + */ + asynStatus readInt32(asynUser *pasynUser, epicsInt32 *value); + /** * @brief Get the axis object *