From 0e2b5f5e93ef02aa6ab1800a23b4b073c53e8d39 Mon Sep 17 00:00:00 2001 From: smathis Date: Tue, 23 Dec 2025 11:59:09 +0100 Subject: [PATCH] Fixed number of commands bug in turboPmacAxis::init --- src/turboPmacAxis.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/turboPmacAxis.cpp b/src/turboPmacAxis.cpp index ef26e90..bd5bbd2 100644 --- a/src/turboPmacAxis.cpp +++ b/src/turboPmacAxis.cpp @@ -177,9 +177,8 @@ asynStatus turboPmacAxis::init() { */ snprintf(command, sizeof(command), "Q%2.2d10 Q%2.2d03 Q%2.2d04 Q%2.2d06 P%2.2d22 Q%2.2d00 I%2.2d65", - axisNo_, axisNo_, axisNo_, axisNo_, axisNo_, axisNo_, axisNo_, - axisNo_); - status = pC_->writeRead(axisNo_, command, response, 8); + axisNo_, axisNo_, axisNo_, axisNo_, axisNo_, axisNo_, axisNo_); + status = pC_->writeRead(axisNo_, command, response, 7); if (status != asynSuccess) { asynPrint( pC_->pasynUser(), ASYN_TRACE_ERROR,