saving charger inversion state