update battery charging