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); }