Closed laur89 closed 8 months ago
Without the trailing r
, acc requires two conditions to resume charging:
With the trailing r
, acc resumes charging when battery temp <= rt, regardless of rc.
Additionally, if charging has been paused by cooldown, it resumes regadless of rt and rc, when the cooldown conditions allow it.
The suggested change effectively kills the need for r
:
...only in case a charging cycle has been stopped due to reaching a mt-condition (maybe also if paused by the cp-phase of a cch/cp cycle) rc is changed to pc-1 but then - as soon as charging was restarted (by reaching rt or the cch-phase of a cch/cp cycle) rc as defined applies again.
This change was implemented.
This ticket is to contain the work/discussion stemming from a telegram discussion.
As-is: If both
rc
(resume_capacity) andrt
(resume_temp) with ther
postfix are defined, then configured rc value becomes essentially no-op by temporarily defining rc to pc-1. This means charging will continue regardless of the value we set for rc in config.To-be: Change the logic so that original/set value of
rc
continues to be respected. This means when cooldown has not been triggered, then battery should be allowed to discharge until the originalrc
value. Am not familiar with the implementation, so can't tell whether thepc-1
should be set only when cooldown kicks in during charging, or the whole logic requires a rework.Reasoning: All this is to allow the battery to be discharged to our set
rc
value in non-idle mode. As it stands currently, battery would kept charged topc
.Example: With configuration such as
and plugging the charger in at 70% (with mild ambient temperature so cooldown doesn't kick in), one would expect the battery to be depleted until 60%. But as it stands, it'll start charging immediately, and keep the level between 79-80%.