From 3ce55f0bb8dc06658e0b30ba44f6185c2234ed8c Mon Sep 17 00:00:00 2001 From: Michele Bini Date: Mon, 6 Jun 2022 05:12:24 +0200 Subject: Set battery voltage corresponding to 0% as 3.6 V 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) { -- cgit v0.10.2