Merge pull request #60 from EuropeanSpallationSource/record-DLYandSTOP-problem

Record: motor record DLY and STOP problem
This commit is contained in:
Kevin Peterson
2018-05-01 09:51:03 -05:00
committed by GitHub
+7 -3
View File
@@ -1804,9 +1804,13 @@ static RTN_STATUS do_work(motorRecord * pmr, CALLBACK_VALUE proc_ind)
/* Cancel any operations. */
if (pmr->mip & MIP_HOME)
clear_buttons(pmr);
pmr->mip = MIP_STOP;
MARK(M_MIP);
if (!(pmr->mip & MIP_DELAY_REQ)) {
/* When we wait for DLY, keep it. */
/* Otherwise the record may lock up */
pmr->mip = MIP_STOP;
MARK(M_MIP);
}
INIT_MSG();
WRITE_MSG(STOP_AXIS, NULL);
SEND_MSG();