Before this change, initial charging ended exactly HOLD_TIME after the CHARGE_INITIAL state was entered. This was usually not sufficient to reach the INITIAL_FULL voltage. Now a new state is entered once the INITIAL_FULL voltage is reached.
It sleeps, but never wakes up again. Also it consumes a lot of current which suspended?!
Everything untested so far…