summaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'src/components')
-rw-r--r--src/components/battery/BatteryController.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/battery/BatteryController.h b/src/components/battery/BatteryController.h
index ecf8c91f..3138d243 100644
--- a/src/components/battery/BatteryController.h
+++ b/src/components/battery/BatteryController.h
@@ -12,7 +12,7 @@ namespace Pinetime {
class CircBuffer {
public:
CircBuffer() : arr{}, sz{}, cap{N}, loc{} {}
- void insert(const float num) {
+ void insert(const int num) {
loc %= cap;
arr[loc++] = num;
if (sz != cap) {
@@ -26,7 +26,7 @@ namespace Pinetime {
}
private:
- std::array<float, N> arr;
+ std::array<int, N> arr;
uint8_t sz;
uint8_t cap;
uint8_t loc;