Skip to content

Commit 12f3a2b

Browse files
committed
removed space and LF to pass the run-clang-format police :-)
1 parent c02fe74 commit 12f3a2b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Adafruit_PWMServoDriver.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,9 @@ void Adafruit_PWMServoDriver::wakeup() {
110110
* @param extclk
111111
* Sets EXTCLK pin to use the external clock, default false
112112
*/
113-
void Adafruit_PWMServoDriver::setPrescale(uint8_t prescale,
114-
bool extclk) {
113+
void Adafruit_PWMServoDriver::setPrescale(uint8_t prescale, bool extclk) {
115114
if (prescale < PCA9685_PRESCALE_MIN)
116-
return;
115+
return;
117116
// if (prescale > PCA9685_PRESCALE_MAX) return;
118117

119118
uint8_t newmode1 = read8(PCA9685_MODE1);
@@ -122,7 +121,7 @@ void Adafruit_PWMServoDriver::setPrescale(uint8_t prescale,
122121

123122
// This sets both the SLEEP and EXTCLK bits of the MODE1 register to switch to
124123
// use the external clock.
125-
if (extclk) {
124+
if (extclk) {
126125
write8(PCA9685_MODE1, (newmode1 |= MODE1_EXTCLK));
127126
}
128127

0 commit comments

Comments
 (0)