Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Currently in firmware we hard-code NUM_CELLS (usually to 1), and our code for calculating battery charge uses this variable in ways like "voltage = v / NUM_CELLS;" If the battery voltage is one cell around our 4V normal, that works fine. However, as reported in meshtastic/firmware#5360 it's not uncommon for solar installs that have multiple batteries set up in a way that looks like 1 cell at 12V to our current code. So, battery charge % is always 100%. Allowing num_cells as a configuration option will allow those users to specify how many batteries they have and receive accurate readings.
- Loading branch information