From 2176a30419a5ee8358ed8509a094afd8f0e0ac8f Mon Sep 17 00:00:00 2001 From: Oliver Seiler Date: Fri, 29 Jan 2021 11:17:39 +1300 Subject: [PATCH] Fix PMU_CHARGE_CURRENT and PMU_CHARGE_CUTOFF defines --- src/power.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/power.cpp b/src/power.cpp index a3ec4869..70c300dd 100644 --- a/src/power.cpp +++ b/src/power.cpp @@ -158,9 +158,9 @@ void AXP192_init(void) { #endif // PMU_INT // set charging parameterss according to user settings if we have (see power.h) -#ifdef PMU_CHARGE_CURRENT - pmu.setChargeControlCur(PMU_CHARGE_CURRENT); - pmu.setChargingTargetVoltage(PMU_CHARGE_CUTOFF); +#ifdef PMU_CHG_CURRENT + pmu.setChargeControlCur(PMU_CHG_CURRENT); + pmu.setChargingTargetVoltage(PMU_CHG_CUTOFF); pmu.enableChargeing(true); #endif