How to measure current with a battery adapter