Skip to content

Commit 037599e

Browse files
author
Charles-Ellison
committed
more formatting
1 parent 5f79849 commit 037599e

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

Adafruit_PWMServoDriverGroup.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*/
1111
Adafruit_PWMServoDriverGroup::Adafruit_PWMServoDriverGroup(
1212
const uint8_t nDrivers, const uint8_t nServosEach, const uint8_t *addr) {
13-
_nDrivers = nDrivers;
13+
_nDriversrew install clang-forma = nDrivers;
1414
_nServosEach = nServosEach;
1515

1616
_drivers = (Adafruit_PWMServoDriver **)malloc(
@@ -46,9 +46,7 @@ Adafruit_PWMServoDriverGroup::Adafruit_PWMServoDriverGroup(
4646

4747
/* @brief Gets the number of PCA9685 PWM driver chips connected to this class
4848
*/
49-
uint8_t Adafruit_PWMServoDriverGroup::getNumDrivers() {
50-
return _nDrivers;
51-
}
49+
uint8_t Adafruit_PWMServoDriverGroup::getNumDrivers() { return _nDrivers; }
5250

5351
/* @brief Gets the number of servos associated with each PCA9685 PWM chip
5452
*/

Adafruit_PWMServoDriverGroup.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,9 @@
2828
class Adafruit_PWMServoDriverGroup {
2929
public:
3030
Adafruit_PWMServoDriverGroup(const uint8_t ndrivers,
31-
const uint8_t nServosEach,
32-
const uint8_t *addr);
31+
const uint8_t nServosEach, const uint8_t *addr);
3332
Adafruit_PWMServoDriverGroup(const uint8_t ndrivers,
34-
const uint8_t nServosEach,
35-
const uint8_t *addr,
33+
const uint8_t nServosEach, const uint8_t *addr,
3634
TwoWire &i2c);
3735

3836
Adafruit_PWMServoDriver *getDriver(uint8_t num, uint8_t &localNum);

0 commit comments

Comments
 (0)