Control the current of the battery