Battery curve, slight modification

This commit is contained in:
Krzysiek Egzmont
2023-11-02 00:54:48 +01:00
parent 03a51525b6
commit 034139d7d5

View File

@@ -52,18 +52,20 @@ volatile uint16_t gPowerSave_10ms;
unsigned int BATTERY_VoltsToPercent(const unsigned int voltage_10mV) unsigned int BATTERY_VoltsToPercent(const unsigned int voltage_10mV)
{ {
const uint16_t crv1600[][2] = { const uint16_t crv1600[][2] = {
{814, 100}, {828, 100},
{756, 24 }, {814, 97 },
{729, 7 }, {760, 25 },
{729, 6 },
{630, 0 }, {630, 0 },
{0, 0 } {0, 0 }
}; };
const uint16_t crv2200[][2] = { const uint16_t crv2200[][2] = {
{823, 100}, {832, 100},
{813, 95 },
{740, 60 }, {740, 60 },
{707, 21 }, {707, 21 },
{680, 5}, {682, 5 },
{630, 0 }, {630, 0 },
{0, 0 } {0, 0 }
}; };