motorRecord.cc: Jogging against to LVIO in LVIO

When jogging has stopped because the motor is close to a softlimit,
the record seems to be locked up when the same jog button is pressed again.

The user must release the jog button, before doing any other action.
STOP doesn't help, neither does jog into the opposite direction work.

Solution:
Clear the JOGF and JOGR button in the record.
This commit is contained in:
Torsten Bögershausen
2018-08-20 09:08:22 +02:00
parent a002988622
commit 9e5b54323a
+11
View File
@@ -2001,6 +2001,17 @@ static RTN_STATUS do_work(motorRecord * pmr, CALLBACK_VALUE proc_ind)
{
pmr->lvio = 1;
MARK(M_LVIO);
/* Prevent record from locking up in mip=JOG_REQ */
if (pmr->jogf)
{
pmr->jogf = 0;
MARK_AUX(M_JOGF);
}
if (pmr->jogr)
{
pmr->jogr = 0;
MARK_AUX(M_JOGR);
}
return(OK);
}
pmr->mip = pmr->jogf ? MIP_JOGF : MIP_JOGR;