Patent attributes
This disclosure is directed to devices, systems, and techniques for controlling electrical stimulation therapy. In some examples, a medical device includes stimulation generation circuitry configured to deliver a first stimulation pulse to a patient, sensing circuitry configured to sense the first stimulation pulse, and processing circuitry. The processing circuitry is configured to determine that a value of a characteristic of the sensed first stimulation pulse exceeds a target stimulation pulse value and responsive to determining that the value of the characteristic of the sensed first stimulation pulse exceeds the target stimulation pulse value, change a first value of a parameter to a second value of the parameter that at least partially defines a second stimulation pulse deliverable by the stimulation generation circuitry after the first stimulation pulse was sensed.