forked from epics_driver_modules/motorBase
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user