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