mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-07-26 23:08:11 +00:00
Replace linear voltage-to-percent formula with a LiPo discharge curve lookup table and linear interpolation. The curve is then rescaled so that low_batt_mv (configurable shutdown threshold) maps to 0% and 4200mV maps to 100%, preserving the non-linear shape regardless of the chosen threshold. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>