fix power chip saying not charging when it is actually charging

This commit is contained in:
csawatzky 2025-09-29 14:25:50 -06:00
parent b9cc34afa1
commit 612a8da0f7

View file

@ -72,7 +72,8 @@ export function describePower(power?: pond.DevicePower | null): PowerDescriber {
} else { } else {
let thresholds = notChargingThresholds; let thresholds = notChargingThresholds;
let suffix = "not charging"; let suffix = "not charging";
if (power.inputVoltage >= 4) { //Ashton tells me that with the new battery that any voltage over 2.8 is charging and it maxes out at 4.2 volts, so dropping it down here as the chip would say not charging when it really was
if (power.inputVoltage >= 2.8) {
thresholds = chargingThresholds; thresholds = chargingThresholds;
if (power.chargePercent === 100) { if (power.chargePercent === 100) {
suffix = "charged"; suffix = "charged";