调整满电维持区间显示

This commit is contained in:
Codex 2026-06-24 09:55:03 +08:00
parent 26365ec0e0
commit fcd762c436

View File

@ -39,25 +39,21 @@ typedef struct {
int percent;
} battery_curve_point_t;
// ETA6098 stops at end-of-charge and restarts roughly 160 mV below 4.2 V,
// so the maintenance band should still read as a full battery.
static const battery_curve_point_t s_battery_curve[] = {
{ 4200, 100 },
{ 4160, 95 },
{ 4110, 90 },
{ 4080, 85 },
{ 4020, 80 },
{ 3980, 75 },
{ 3950, 70 },
{ 3910, 65 },
{ 3870, 60 },
{ 3850, 55 },
{ 3830, 50 },
{ 3810, 45 },
{ 3790, 40 },
{ 3770, 35 },
{ 3750, 30 },
{ 3730, 25 },
{ 4080, 100 },
{ 4050, 98 },
{ 4020, 95 },
{ 3980, 92 },
{ 3950, 88 },
{ 3910, 82 },
{ 3870, 75 },
{ 3830, 65 },
{ 3790, 52 },
{ 3750, 35 },
{ 3710, 20 },
{ 3690, 15 },
{ 3650, 10 },
{ 3570, 5 },
{ 3300, 0 },