Battery or charger load switching