Dual battery charging principle