From fcd762c4363337971b80ab8fc90c25ff5db8622e Mon Sep 17 00:00:00 2001 From: Codex Date: Wed, 24 Jun 2026 09:55:03 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=BB=A1=E7=94=B5=E7=BB=B4?= =?UTF-8?q?=E6=8C=81=E5=8C=BA=E9=97=B4=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main/battery_monitor.c | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/main/battery_monitor.c b/main/battery_monitor.c index dce142c..5988979 100644 --- a/main/battery_monitor.c +++ b/main/battery_monitor.c @@ -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 },