From cfab41fa53fbf7243e79b772803e091d755b304d Mon Sep 17 00:00:00 2001 From: dj2ls Date: Sat, 27 Jun 2026 16:47:56 +0200 Subject: [PATCH] cleanup --- src/hal/Power.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/hal/Power.cpp b/src/hal/Power.cpp index c040c6a..cdc2fc5 100644 --- a/src/hal/Power.cpp +++ b/src/hal/Power.cpp @@ -8,8 +8,6 @@ extern Display display; extern Keyboard keyboard; // Battery type lookup table for getting voltage vs percent -// interpolated chart from https://www.researchgate.net/figure/Li-ion-battery-discharge-voltage-curve_fig5_363575973 -// the manual chart reading entries are read from chart, while the others are interpolated namespace { struct VoltPoint { float v; int pct; }; @@ -64,7 +62,7 @@ float Power::batteryVoltage() const { int Power::batteryPercent() const { float v = batteryVoltage(); - // Charging: voltage exceeds the discharge curve's top (3.9V = full). + // Charging: voltage exceeds the discharge curve's top (about 3.9V = full). // A discharging cell never gets there, so treat this as full. if (isCharging()) return 100;