We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3381d68 commit 81c0608Copy full SHA for 81c0608
1 file changed
sim/components/battery/BatteryController.h
@@ -22,7 +22,7 @@ namespace Pinetime {
22
}
23
24
bool BatteryIsLow() const {
25
- return false;
+ return percentRemaining <= lowBatteryThreshold;
26
27
28
bool IsCharging() const {
@@ -53,6 +53,8 @@ namespace Pinetime {
53
//void SaadcEventHandler(nrfx_saadc_evt_t const* p_event);
54
//static void AdcCallbackStatic(nrfx_saadc_evt_t const* event);
55
56
+ static constexpr uint8_t lowBatteryThreshold {20};
57
+
58
bool isReading = false;
59
60
Pinetime::System::SystemTask* systemTask = nullptr;
0 commit comments