Lithium battery control method