Skip to content

Commit

Permalink
removed space and LF to pass the run-clang-format police :-)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bolukan committed Nov 3, 2019
1 parent c02fe74 commit 12f3a2b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Adafruit_PWMServoDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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));
}

Expand Down

0 comments on commit 12f3a2b

Please sign in to comment.