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 arr; + std::array arr; uint8_t sz; uint8_t cap; uint8_t loc;