summaryrefslogtreecommitdiff
path: root/src/components/battery
diff options
context:
space:
mode:
authorAvamander <avamander@gmail.com>2021-04-24 09:00:45 (GMT)
committerAvamander <avamander@gmail.com>2021-04-24 09:00:45 (GMT)
commit69898545193a82f7d72c9f47c9d9de36167b157b (patch)
treecf2bea6d67e8d91a7d6222b8e0b55a0075575003 /src/components/battery
parent40d45d923b033363ff1304b47eac238dd4495a57 (diff)
Changed access modified indentation
Diffstat (limited to 'src/components/battery')
-rw-r--r--src/components/battery/BatteryController.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/components/battery/BatteryController.h b/src/components/battery/BatteryController.h
index e5c734d..04bcf6b 100644
--- a/src/components/battery/BatteryController.h
+++ b/src/components/battery/BatteryController.h
@@ -12,7 +12,7 @@ namespace Pinetime {
is given as the template parameter N.
*/
template <int N> class CircBuffer {
- public:
+ public:
CircBuffer() : arr {}, sz {}, cap {N}, head {} {
}
/**
@@ -32,7 +32,7 @@ namespace Pinetime {
return (sum / sz);
}
- private:
+ private:
std::array<int, N> arr; /**< internal array used to store the values*/
uint8_t sz; /**< The current size of the array.*/
uint8_t cap; /**< Total capacity of the CircBuffer.*/
@@ -40,7 +40,7 @@ namespace Pinetime {
};
class Battery {
- public:
+ public:
Battery();
void Init();
@@ -61,7 +61,7 @@ namespace Pinetime {
return isPowerPresent;
}
- private:
+ private:
static Battery* instance;
nrf_saadc_value_t saadc_value;