Interrupt handling in motorsec.c did not work, fixed

This commit is contained in:
2015-06-16 11:01:51 +02:00
parent 6c40d4c06c
commit 766c8bbb73

View File

@ -350,7 +350,7 @@ static int SecMotorStatus(void *sulf, SConnection * pCon)
case HWFault:
self->posCount = 10000;
handleMoveCallback(self, pCon);
SecMotorGetPar(self, "interrupt", &interrupt);
SecMotorGetPar(self, "interruptmode", &interrupt);
if (SCGetInterrupt(pCon) < (int) interrupt) {
SCSetInterrupt(pCon, (int) interrupt);
}