mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-05 21:24:34 +00:00
fix tbeams3-core PMU charging cut-off voltage
This commit is contained in:
parent
37f716d27b
commit
63d7338311
@ -455,6 +455,9 @@ bool Power::axpChipInit()
|
|||||||
// Set constant current charging current
|
// Set constant current charging current
|
||||||
PMU->setChargerConstantCurr(XPOWERS_AXP192_CHG_CUR_450MA);
|
PMU->setChargerConstantCurr(XPOWERS_AXP192_CHG_CUR_450MA);
|
||||||
|
|
||||||
|
//Set up the charging voltage
|
||||||
|
PMU->setChargeTargetVoltage(XPOWERS_AXP192_CHG_VOL_4V2);
|
||||||
|
|
||||||
} else if (PMU->getChipModel() == XPOWERS_AXP2101) {
|
} else if (PMU->getChipModel() == XPOWERS_AXP2101) {
|
||||||
|
|
||||||
// t-beam s3 core
|
// t-beam s3 core
|
||||||
@ -507,6 +510,8 @@ bool Power::axpChipInit()
|
|||||||
//Set the constant current charging current of AXP2101, temporarily use 500mA by default
|
//Set the constant current charging current of AXP2101, temporarily use 500mA by default
|
||||||
PMU->setChargerConstantCurr(XPOWERS_AXP2101_CHG_CUR_500MA);
|
PMU->setChargerConstantCurr(XPOWERS_AXP2101_CHG_CUR_500MA);
|
||||||
|
|
||||||
|
//Set up the charging voltage
|
||||||
|
PMU->setChargeTargetVoltage(XPOWERS_AXP2101_CHG_VOL_4V2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -560,9 +565,6 @@ bool Power::axpChipInit()
|
|||||||
DEBUG_MSG("=======================================================================\n");
|
DEBUG_MSG("=======================================================================\n");
|
||||||
|
|
||||||
|
|
||||||
//Set up the charging voltage, AXP2101/AXP192 4.2V gear is the same
|
|
||||||
// XPOWERS_AXP192_CHG_VOL_4V2 = XPOWERS_AXP2101_CHG_VOL_4V2
|
|
||||||
PMU->setChargeTargetVoltage(XPOWERS_AXP192_CHG_VOL_4V2);
|
|
||||||
|
|
||||||
// Set PMU shutdown voltage at 2.6V to maximize battery utilization
|
// Set PMU shutdown voltage at 2.6V to maximize battery utilization
|
||||||
PMU->setSysPowerDownVoltage(2600);
|
PMU->setSysPowerDownVoltage(2600);
|
||||||
|
Loading…
Reference in New Issue
Block a user