- Cleaned all old dtatus setting code
This commit is contained in:
5
velo.c
5
velo.c
@@ -588,10 +588,7 @@ int VSGetLossCurrent(pVelSel self, SConnection * pCon, float *fLoss)
|
||||
assert(self);
|
||||
assert(pCon);
|
||||
|
||||
eOld = GetStatus();
|
||||
SetStatus(eRunning);
|
||||
iRet = self->pDriv->GetLossCurrent(self->pDriv, fLoss);
|
||||
SetStatus(eOld);
|
||||
if (!iRet) {
|
||||
self->pDriv->GetError(self->pDriv, &iCode, pError, 131);
|
||||
snprintf(pBueffel,sizeof(pBueffel)-1, "ERROR: %s while trying to measure loss current",
|
||||
@@ -1161,9 +1158,7 @@ int VelSelAction(SConnection * pCon, SicsInterp * pSics, void *pData,
|
||||
eError);
|
||||
return 0;
|
||||
}
|
||||
SetStatus(eDriving);
|
||||
iRet = VSSetTiltRot(self, pCon, fRot, fTilt);
|
||||
SetStatus(eEager);
|
||||
if (iRet) {
|
||||
SCSendOK(pCon);
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user