Clear "forceCallback" before processing motor record (from params->callback) and only if forceCallback is ON.

(Fixes motor record left in the moving state (DMOV=0) after limit switch error reported by Andy Foster.)
This commit is contained in:
Ron Sluiter
2014-06-12 13:59:57 +00:00
parent 43f57ddd31
commit ae68ae02c6
+4 -1
View File
@@ -265,8 +265,11 @@ static void paramCallCallback( PARAMS params )
}
if ( (params->forceCallback || nFlags > 0) && params->callback != NULL )
{
if (params->forceCallback)
params->forceCallback = 0;
params->callback( params->param, nFlags, params->set_flags );
params->forceCallback=0;
}
}
/** Forces the next paramCallCallback to actually call the callback routine