Fix mAhDrawn - one too many / 1000.
Without this commit the mAhDrawn was always 0, now at ~10A draw it ticks up. This needs to be verified, but seems to match behaviour of 1.9.x. Fixes #1353
This commit is contained in:
parent
d1616b2795
commit
779702230f
|
@ -259,7 +259,7 @@ void annexCode(void)
|
||||||
|
|
||||||
if (ibatTimeSinceLastServiced >= IBATINTERVAL) {
|
if (ibatTimeSinceLastServiced >= IBATINTERVAL) {
|
||||||
ibatLastServiced = currentTime;
|
ibatLastServiced = currentTime;
|
||||||
updateCurrentMeter((ibatTimeSinceLastServiced / 1000), &masterConfig.rxConfig, masterConfig.flight3DConfig.deadband3d_throttle);
|
updateCurrentMeter(ibatTimeSinceLastServiced, &masterConfig.rxConfig, masterConfig.flight3DConfig.deadband3d_throttle);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue