Added error reset function.

This commit is contained in:
2025-03-10 14:31:15 +01:00
parent d6adf1ad2a
commit 967613447b
4 changed files with 104 additions and 9 deletions

View File

@@ -300,7 +300,7 @@ asynStatus turboPmacController::writeRead(int axisNo, const char *command,
stringifyAsynStatus(status), msgPrintControl_.getSuffix());
}
} else {
msgPrintControl_.resetCount(writeKey);
msgPrintControl_.resetCount(writeKey, pasynUserSelf);
}
// Read the response from the MCU buffer
@@ -351,7 +351,7 @@ asynStatus turboPmacController::writeRead(int axisNo, const char *command,
stringifyAsynStatus(status), msgPrintControl_.getSuffix());
}
} else {
msgPrintControl_.resetCount(readKey);
msgPrintControl_.resetCount(readKey, pasynUserSelf);
}
if (timeoutStatus == asynError) {
@@ -377,7 +377,7 @@ asynStatus turboPmacController::writeRead(int axisNo, const char *command,
eomReason, msgPrintControl_.getSuffix());
}
} else {
msgPrintControl_.resetCount(terminateKey);
msgPrintControl_.resetCount(terminateKey, pasynUserSelf);
}
/*
@@ -412,7 +412,7 @@ asynStatus turboPmacController::writeRead(int axisNo, const char *command,
modResponse, command);
status = asynError;
} else {
msgPrintControl_.resetCount(numResponsesKey);
msgPrintControl_.resetCount(numResponsesKey, pasynUserSelf);
}
// Create custom error messages for different failure modes, if no error