From 12f3a2b2776915d625c211b67ec4d86849415f5f Mon Sep 17 00:00:00 2001 From: unknown Date: Sun, 3 Nov 2019 21:43:26 +0100 Subject: [PATCH] removed space and LF to pass the run-clang-format police :-) --- Adafruit_PWMServoDriver.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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)); }