Skip to content

Commit cc1340a

Browse files
committed
clang format
1 parent b4bf436 commit cc1340a

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

src/components/i2c/WipperSnapper_I2C.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ class WipperSnapper_I2C_Driver_INA260;
9090
class WipperSnapper_I2C_Driver_INA237;
9191
class WipperSnapper_I2C_Driver_INA238;
9292

93-
9493
/**************************************************************************/
9594
/*!
9695
@brief Class that provides an interface with the I2C bus.

src/components/i2c/drivers/WipperSnapper_I2C_Driver_INA237.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
*/
88

99
#include "WipperSnapper_I2C_Driver_INA237.h"
10-
#include <Adafruit_INA237.h>
1110
#include "../../../Wippersnapper.h"
11+
#include <Adafruit_INA237.h>
1212

1313
/*******************************************************************************/
1414
/*!

src/components/i2c/drivers/WipperSnapper_I2C_Driver_INA260.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
The 7-bit I2C address of the sensor.
1919
*/
2020
/*******************************************************************************/
21-
WipperSnapper_I2C_Driver_INA260::WipperSnapper_I2C_Driver_INA260(TwoWire *i2c, uint16_t sensorAddress)
21+
WipperSnapper_I2C_Driver_INA260::WipperSnapper_I2C_Driver_INA260(
22+
TwoWire *i2c, uint16_t sensorAddress)
2223
: WipperSnapper_I2C_Driver(i2c, sensorAddress), _ina260(nullptr) {
2324
_i2c = i2c;
2425
_sensorAddress = sensorAddress;
@@ -60,7 +61,8 @@ bool WipperSnapper_I2C_Driver_INA260::begin() {
6061
otherwise.
6162
*/
6263
/*******************************************************************************/
63-
bool WipperSnapper_I2C_Driver_INA260::getEventVoltage(sensors_event_t *voltageEvent) {
64+
bool WipperSnapper_I2C_Driver_INA260::getEventVoltage(
65+
sensors_event_t *voltageEvent) {
6466
voltageEvent->voltage = _ina260->readBusVoltage();
6567
return true;
6668
}
@@ -73,7 +75,8 @@ bool WipperSnapper_I2C_Driver_INA260::getEventVoltage(sensors_event_t *voltageEv
7375
* @returns True if the sensor event was obtained successfully, False
7476
* otherwise.
7577
*/
76-
bool WipperSnapper_I2C_Driver_INA260::getEventCurrent(sensors_event_t *currentEvent) {
78+
bool WipperSnapper_I2C_Driver_INA260::getEventCurrent(
79+
sensors_event_t *currentEvent) {
7780
currentEvent->current = _ina260->readCurrent();
7881
return true;
7982
}

0 commit comments

Comments
 (0)