mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 00:05:33 +03:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue