Fix PMU_CHARGE_CURRENT and PMU_CHARGE_CUTOFF defines

This commit is contained in:
Oliver Seiler 2021-01-29 11:17:39 +13:00
parent eb50069459
commit 2176a30419

View File

@ -158,9 +158,9 @@ void AXP192_init(void) {
#endif // PMU_INT #endif // PMU_INT
// set charging parameterss according to user settings if we have (see power.h) // set charging parameterss according to user settings if we have (see power.h)
#ifdef PMU_CHARGE_CURRENT #ifdef PMU_CHG_CURRENT
pmu.setChargeControlCur(PMU_CHARGE_CURRENT); pmu.setChargeControlCur(PMU_CHG_CURRENT);
pmu.setChargingTargetVoltage(PMU_CHARGE_CUTOFF); pmu.setChargingTargetVoltage(PMU_CHG_CUTOFF);
pmu.enableChargeing(true); pmu.enableChargeing(true);
#endif #endif