Ben Franksen's fix "set the RA_DONE flag when motor_motion is reset to NULL before callback is issued". This fixes a long-standing issue with OMS boards where occasionally the motor record hangs after a move against a limit switch, since it reads a wrong status where the RA_DONE flags is not set.

This commit is contained in:
timmmooney
2014-04-02 17:52:06 +00:00
parent 566a35b75b
commit 9a957fe7ce
+1
View File
@@ -276,6 +276,7 @@ static double query_axis(int card, struct driver_table *tabptr, epicsTime tick,
motor_free(motor_motion, tabptr);
motor_motion = (struct mess_node *) NULL;
motor_info->motor_motion = (struct mess_node *) NULL;
mess_ret->status.Bits.RA_DONE = 1;
}
callbackRequest(&mess_ret->callback);