How to limit the current when the battery power is high