fix power chip saying not charging when it is actually charging
This commit is contained in:
parent
b9cc34afa1
commit
612a8da0f7
1 changed files with 2 additions and 1 deletions
|
|
@ -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";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue