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:
Dominic Clifton 2015-09-28 01:41:49 +01:00
parent d1616b2795
commit 779702230f
1 changed files with 1 additions and 1 deletions

View File

@ -259,7 +259,7 @@ void annexCode(void)
if (ibatTimeSinceLastServiced >= IBATINTERVAL) {
ibatLastServiced = currentTime;
updateCurrentMeter((ibatTimeSinceLastServiced / 1000), &masterConfig.rxConfig, masterConfig.flight3DConfig.deadband3d_throttle);
updateCurrentMeter(ibatTimeSinceLastServiced, &masterConfig.rxConfig, masterConfig.flight3DConfig.deadband3d_throttle);
}
}