- Fixed a crash coming from velo.c

- Improved saving of reflection lists
- The other changes are mostly whitespace
This commit is contained in:
koennecke
2009-10-30 13:49:37 +00:00
parent cb0e4ea434
commit 2e873e3059
13 changed files with 79 additions and 14 deletions

View File

@@ -165,6 +165,7 @@ static int ECBGetStatus(struct __COUNTER *self, float *fControl)
This can happen after a stop
*/
if (pPriv->state == IDLE) {
ECBTransfer(self);
return HWIdle;
}
@@ -210,6 +211,7 @@ static int ECBGetStatus(struct __COUNTER *self, float *fControl)
}
if (out.d == 0 && pPriv->state == COUNT) {
result = HWIdle;
ECBTransfer(self);
pPriv->state = IDLE;
} else {
result = HWBusy;
@@ -228,11 +230,12 @@ static int ECBGetStatus(struct __COUNTER *self, float *fControl)
readScaler(pPriv, scaler, &count);
/*
ignore errors on this one
*/
*/
*fControl = (float) count;
return result;
}
}exit
/*=====================================================================*/
static int clearScalers(pECBCounter self)