- TDC histogram memory driver sort of working
- New class for scripting datafiles - SANS-II almost complete initialization file
This commit is contained in:
14
motreg.c
14
motreg.c
@ -108,9 +108,11 @@ int StartRegMot(pMotReg self, SConnection *pCon, float fValue){
|
||||
self->motorData,
|
||||
pCon,
|
||||
fValue);
|
||||
/*
|
||||
sprintf(pBueffel,"anticollision started %s to %f",self->motorName,
|
||||
fValue);
|
||||
SCWrite(pCon,pBueffel,eValue);
|
||||
*/
|
||||
|
||||
pDriv->SetValue = oldSet;
|
||||
self->iActive = 1;
|
||||
@ -121,9 +123,13 @@ int CheckRegMot(pMotReg self, SConnection *pCon){
|
||||
int stat;
|
||||
|
||||
assert(self);
|
||||
stat = self->originalCheckStatus(self->motorData,pCon);
|
||||
if(stat != HWBusy){
|
||||
self->iActive = 0;
|
||||
if(self->iActive){
|
||||
stat = self->originalCheckStatus(self->motorData,pCon);
|
||||
if(stat != HWBusy){
|
||||
self->iActive = 0;
|
||||
}
|
||||
} else {
|
||||
return HWIdle;
|
||||
}
|
||||
return stat;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user