diff options
| author | Michele Bini <michele.bini@gmail.com> | 2022-06-06 03:12:24 (GMT) |
|---|---|---|
| committer | Michele Bini <michele.bini@gmail.com> | 2022-06-07 01:28:37 (GMT) |
| commit | 3ce55f0bb8dc06658e0b30ba44f6185c2234ed8c (patch) | |
| tree | 328d28fef6d70fa7d86ca772b8043a3d6796a614 | |
| parent | 0505b9ff3442b697fdc362750b66e1dd6efa8241 (diff) | |
Set battery voltage corresponding to 0% as 3.6 V
| -rw-r--r-- | src/components/battery/BatteryController.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/battery/BatteryController.cpp b/src/components/battery/BatteryController.cpp index 300d097..8575fff 100644 --- a/src/components/battery/BatteryController.cpp +++ b/src/components/battery/BatteryController.cpp @@ -61,7 +61,7 @@ void Battery::SaadcInit() { void Battery::SaadcEventHandler(nrfx_saadc_evt_t const* p_event) { const uint16_t battery_max = 4180; // maximum voltage of battery ( max charging voltage is 4.21 ) - const uint16_t battery_min = 3200; // minimum voltage of battery before shutdown ( depends on the battery ) + const uint16_t battery_min = 3600; // battery voltage corresponding to 0% if (p_event->type == NRFX_SAADC_EVT_DONE) { |
