diff --git a/Adafruit_PWMServoDriver.cpp b/Adafruit_PWMServoDriver.cpp index 50e492e..fdad804 100755 --- a/Adafruit_PWMServoDriver.cpp +++ b/Adafruit_PWMServoDriver.cpp @@ -110,10 +110,9 @@ void Adafruit_PWMServoDriver::wakeup() { * @param extclk * Sets EXTCLK pin to use the external clock, default false */ -void Adafruit_PWMServoDriver::setPrescale(uint8_t prescale, - bool extclk) { +void Adafruit_PWMServoDriver::setPrescale(uint8_t prescale, bool extclk) { if (prescale < PCA9685_PRESCALE_MIN) - return; + return; // if (prescale > PCA9685_PRESCALE_MAX) return; uint8_t newmode1 = read8(PCA9685_MODE1); @@ -122,7 +121,7 @@ void Adafruit_PWMServoDriver::setPrescale(uint8_t prescale, // This sets both the SLEEP and EXTCLK bits of the MODE1 register to switch to // use the external clock. - if (extclk) { + if (extclk) { write8(PCA9685_MODE1, (newmode1 |= MODE1_EXTCLK)); }