Do not treat asynDisconnected as an error
Test And Build / Lint (push) Successful in 7s
Test And Build / Build (push) Successful in 7s

This commit is contained in:
mathis_s committed 2026-07-15 15:49:41 +02:00
1 parent 3631064469
commit 7cad532a29
1 file changed
+2 -1
+2 -1
View File
@@ -266,7 +266,8 @@ asynStatus sinqAxis::forcedPoll(bool *moving) {
went wrong and the motor has a status problem. Otherwise, delete the error
message entry which is currently in the paramLib.
*/
if (poll_status != asynSuccess || waitingMessage[0] != '\0') {
if ((poll_status != asynSuccess && poll_status != asynDisconnected) ||
waitingMessage[0] != '\0') {
/*
If doPoll cleared the error message paramLib entry, but an old message
is still waiting, set the old message.