diff options
| author | panky-codes <pankaj.sarathy1992@gmail.com> | 2021-01-16 19:36:34 (GMT) |
|---|---|---|
| committer | panky-codes <pankaj.sarathy1992@gmail.com> | 2021-01-16 19:46:01 (GMT) |
| commit | 8697a06642a65df34dff4e97bbade736ee4402de (patch) | |
| tree | be0b7a930490d3890b010e052ffd3ef709d7fe73 /src/components/battery | |
| parent | 271ca78be55e2330b88bec90c7fe8f7a2e27bc87 (diff) | |
Changed std accumulate to use int instead of a float.
Diffstat (limited to 'src/components/battery')
| -rw-r--r-- | src/components/battery/BatteryController.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/battery/BatteryController.h b/src/components/battery/BatteryController.h index 2329f16..ecf8c91 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); } |
