Skip to content

Commit 8697a06

Browse files
author
panky-codes
committed
Changed std accumulate to use int instead of a float.
1 parent 271ca78 commit 8697a06

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/battery/BatteryController.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace Pinetime {
2121
}
2222

2323
int GetAverage() const {
24-
int sum = std::accumulate(arr.begin(), arr.end(), 0.0f);
24+
int sum = std::accumulate(arr.begin(), arr.end(), 0);
2525
return (sum / sz);
2626
}
2727

0 commit comments

Comments
 (0)