Simplified paramLib access and show error messages for one poll cycle

Simplified getting and setting paramLib entries via a macro and created
a mechanism within poll() which makes sure that error messages are shown
for at least one poll cycle. Also moved MAXBUF_ to the SinqController
level.
This commit is contained in:
2025-05-14 16:07:03 +02:00
parent 9bc90cff61
commit b267200039
2 changed files with 10 additions and 1 deletions

View File

@@ -495,7 +495,7 @@ asynStatus sinqController::checkComTimeoutWatchdog(sinqAxis *axis) {
asynStatus status =
checkComTimeoutWatchdog(axis->axisNo(), errorMessage, MAXBUF_);
if (status == asynError) {
setAxisParamChecked(axis, motorMessageText, motorMessage);
setAxisParamChecked(axis, motorMessageText, errorMessage);
}
return status;
}