From c4e39cb214d7cf1343d00b8a19cab9609af86835 Mon Sep 17 00:00:00 2001 From: Peter Buchegger Date: Mon, 18 Sep 2023 14:05:00 +0200 Subject: [PATCH] quick fix for axp2101 charging --- src/power_management.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/power_management.cpp b/src/power_management.cpp index e9b1613..06af01f 100644 --- a/src/power_management.cpp +++ b/src/power_management.cpp @@ -146,13 +146,13 @@ bool AXP2101::begin(TwoWire &port) { _pmu->enablePowerOutput(XPOWERS_ALDO3); // disable all axp chip interrupt - _pmu->disableIRQ(XPOWERS_AXP192_ALL_IRQ); + _pmu->disableIRQ(XPOWERS_AXP2101_ALL_IRQ); // Set constant current charging current - _pmu->setChargerConstantCurr(XPOWERS_AXP192_CHG_CUR_780MA); + _pmu->setChargerConstantCurr(XPOWERS_AXP2101_CHG_CUR_800MA); // Set up the charging voltage - _pmu->setChargeTargetVoltage(XPOWERS_AXP192_CHG_VOL_4V2); + _pmu->setChargeTargetVoltage(XPOWERS_AXP2101_CHG_VOL_4V2); _pmu->setChargingLedMode(XPOWERS_CHG_LED_CTRL_CHG);