From 9a957fe7ce81fc2887cc9250a32baef72e201943 Mon Sep 17 00:00:00 2001 From: timmmooney Date: Wed, 2 Apr 2014 17:52:06 +0000 Subject: [PATCH] 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. --- motorApp/MotorSrc/motordrvCom.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/motorApp/MotorSrc/motordrvCom.cc b/motorApp/MotorSrc/motordrvCom.cc index 7909a20d..ca1ec63b 100644 --- a/motorApp/MotorSrc/motordrvCom.cc +++ b/motorApp/MotorSrc/motordrvCom.cc @@ -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);