Interrupt handling in motorsec.c did not work, fixed
This commit is contained in:
@ -350,7 +350,7 @@ static int SecMotorStatus(void *sulf, SConnection * pCon)
|
|||||||
case HWFault:
|
case HWFault:
|
||||||
self->posCount = 10000;
|
self->posCount = 10000;
|
||||||
handleMoveCallback(self, pCon);
|
handleMoveCallback(self, pCon);
|
||||||
SecMotorGetPar(self, "interrupt", &interrupt);
|
SecMotorGetPar(self, "interruptmode", &interrupt);
|
||||||
if (SCGetInterrupt(pCon) < (int) interrupt) {
|
if (SCGetInterrupt(pCon) < (int) interrupt) {
|
||||||
SCSetInterrupt(pCon, (int) interrupt);
|
SCSetInterrupt(pCon, (int) interrupt);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user