- Fixed a crash coming from velo.c
- Improved saving of reflection lists - The other changes are mostly whitespace
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user