Skip to content

Commit 7f0f1a2

Browse files
committed
clang format
1 parent b4bf436 commit 7f0f1a2

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
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.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
#ifndef WipperSnapper_I2C_Driver_H
1717
#define WipperSnapper_I2C_Driver_H
1818

19+
#include "../../../wippersnapper/i2c/v1/i2c.pb.h"
1920
#include <Adafruit_Sensor.h>
2021
#include <Arduino.h>
2122
#include <Wire.h>
22-
#include "../../../wippersnapper/i2c/v1/i2c.pb.h"
2323

2424
#define PERIOD_24HRS_AGO_MILLIS (millis() - (24 * 60 * 60 * 1000))
2525
///< Used for last sensor read time, initially set 24hrs ago (max period)
@@ -1399,8 +1399,8 @@ class WipperSnapper_I2C_Driver {
13991399
long _ambientTempFPeriod = 0L; ///< The time period between reading the
14001400
///< ambient temp. (°F) sensor's value.
14011401
long _ambientTempFPeriodPrv =
1402-
PERIOD_24HRS_AGO_MILLIS; ///< The time when the ambient temp. (°F) sensor
1403-
///< was last read.
1402+
PERIOD_24HRS_AGO_MILLIS; ///< The time when the ambient temp. (°F) sensor
1403+
///< was last read.
14041404
long _objectTempFPeriod = 0L; ///< The time period between reading the object
14051405
///< temp. (°F) sensor's value.
14061406
long _objectTempFPeriodPrv =

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)