Browse Source

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

master
mntmn 1 month ago
parent
commit
bc12f84d85
Signed by: mntmn <lukas@mntre.com> GPG Key ID: 376511EB67AD7BAF
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      reform2-lpc-fw/src/boards/reform2/board_reform2.c

+ 8
- 0
reform2-lpc-fw/src/boards/reform2/board_reform2.c View File

@@ -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;
}
}
}



Loading…
Cancel
Save