From 2a7934b8d6be02ab134d082dfbbe82c347f86ea9 Mon Sep 17 00:00:00 2001 From: smathis Date: Mon, 5 May 2025 08:51:34 +0200 Subject: [PATCH] Fixed bug where arguments were given in the wrong order. --- src/sinqController.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/sinqController.cpp b/src/sinqController.cpp index 7236ea9..21b4589 100644 --- a/src/sinqController.cpp +++ b/src/sinqController.cpp @@ -505,8 +505,7 @@ asynStatus sinqController::checkMaxSubsequentTimeouts(int timeoutNo, int axisNo, asynPrint( this->pasynUserSelf, ASYN_TRACE_ERROR, "Controller \"%s\", axis %d => %s, line %d:\nMore than %d " - "subsequent communication " - "timeouts\n", + "subsequent communication timeouts.\n", this->portName, axisNo, __PRETTY_FUNCTION__, __LINE__, maxSubsequentTimeouts_); @@ -532,7 +531,7 @@ asynStatus sinqController::checkMaxSubsequentTimeouts(int timeoutNo, char motorMessage[200] = {0}; - asynStatus status = checkMaxSubsequentTimeouts(axis->axisNo(), timeoutNo, + asynStatus status = checkMaxSubsequentTimeouts(timeoutNo, axis->axisNo(), motorMessage, 200); if (status == asynError) { status = axis->setStringParam(motorMessageText_, motorMessage);