reform

MNT Reform: Open Source Portable Computer
Log (Feed) | Files | Refs (Tags) | README

commit bc12f84d85e45c9a9010b4f4a7e8ceab1b471f3b
parent 0ac2f4fd8cbcfafc807fdef9808a7a396e3d808b
Author: mntmn <lukas@mntmn.com>
Date:   Thu,  2 Jul 2020 20:16:40 +0200

lpc: in missing and fully_charged states, we could still become overvolted

Diffstat:
Mreform2-lpc-fw/src/boards/reform2/board_reform2.c | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/reform2-lpc-fw/src/boards/reform2/board_reform2.c b/reform2-lpc-fw/src/boards/reform2/board_reform2.c @@ -734,6 +734,10 @@ int main(void) state = ST_CHARGE; cycles_in_state = 0; } + else if (num_overvolted_cells > 0) { + state = ST_OVERVOLTED; + cycles_in_state = 0; + } } } else if (state == ST_FULLY_CHARGED) { @@ -744,6 +748,10 @@ int main(void) state = ST_CHARGE; cycles_in_state = 0; } + else if (num_overvolted_cells > 0) { + state = ST_OVERVOLTED; + cycles_in_state = 0; + } } }