Merge pull request #733 from oseiler2/master

Fix PMU_CHARGE_CURRENT and PMU_CHARGE_CUTOFF defines
This commit is contained in:
Verkehrsrot 2021-01-29 18:24:39 +01:00 committed by GitHub
commit fc7a1f72ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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