Skip to content

Commit 952021c

Browse files
author
panky-codes
committed
Changed float to int in battery controller file.
1 parent 8697a06 commit 952021c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/battery/BatteryController.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace Pinetime {
1212
class CircBuffer {
1313
public:
1414
CircBuffer() : arr{}, sz{}, cap{N}, loc{} {}
15-
void insert(const float num) {
15+
void insert(const int num) {
1616
loc %= cap;
1717
arr[loc++] = num;
1818
if (sz != cap) {
@@ -26,7 +26,7 @@ namespace Pinetime {
2626
}
2727

2828
private:
29-
std::array<float, N> arr;
29+
std::array<int, N> arr;
3030
uint8_t sz;
3131
uint8_t cap;
3232
uint8_t loc;

0 commit comments

Comments
 (0)