update battery config