Adafruit-PWM-Servo-Driver-Library icon indicating copy to clipboard operation
Adafruit-PWM-Servo-Driver-Library copied to clipboard

_oscillator_freq not initialized?

Open gitcob opened this issue 5 years ago • 0 comments

_oscillator_freq is a member variable but it's not initialized in the constructor. If I understand correctly, begin(0) would then call setPWMFreq which uses that variable, and only after that it is set to the default value.

Calling setOscillatorFrequency before would probably defeat the purpose too, since it would be overwritten with the default.

gitcob avatar May 15 '20 22:05 gitcob