summaryrefslogtreecommitdiff
path: root/src/components/battery/BatteryController.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/battery/BatteryController.h')
-rw-r--r--src/components/battery/BatteryController.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/battery/BatteryController.h b/src/components/battery/BatteryController.h
index 2329f162..ecf8c91f 100644
--- a/src/components/battery/BatteryController.h
+++ b/src/components/battery/BatteryController.h
@@ -21,7 +21,7 @@ namespace Pinetime {
}
int GetAverage() const {
- int sum = std::accumulate(arr.begin(), arr.end(), 0.0f);
+ int sum = std::accumulate(arr.begin(), arr.end(), 0);
return (sum / sz);
}