In a circuit including a microprocessor for controlling current to an inductive load by pulse modulation of applied load voltage wherein the current exhibits ripple, a method of measuring the average current independently of the effects of ripple comprising the steps of:sampling the current at local maxima and minima of current values; storing values representing the currents for the two most rece