How to measure the maximum battery current