fixed divide by zero error if pulsePerRevolution is zero