Skip to content

Commit 525f4a0

Browse files
committed
clang
1 parent 2fab5ab commit 525f4a0

File tree

4 files changed

+14
-10
lines changed

4 files changed

+14
-10
lines changed

src/Wippersnapper.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@
5555
#endif
5656

5757
// Uncomment the following use the staging IO server //
58-
//#define USE_STAGING ///< Use Adafruit IO staging certificate
58+
//#define USE_STAGING ///< Use Adafruit IO staging
59+
//certificate
5960
#define IO_MQTT_SERVER "io.adafruit.com" ///< Adafruit IO MQTT Server
6061
//(Production)
6162

src/components/i2c/WipperSnapper_I2C.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,9 @@ bool WipperSnapper_Component_I2C::initI2CDevice(
168168
@returns True if I2C device is was successfully updated, False otherwise.
169169
*/
170170
/*******************************************************************************/
171-
bool WipperSnapper_Component_I2C::updateI2CDevice(wippersnapper_i2c_v1_I2CDeviceDeinitRequest *msgDeviceUpdateReq) {
172-
// TODO!! //
171+
bool WipperSnapper_Component_I2C::updateI2CDevice(
172+
wippersnapper_i2c_v1_I2CDeviceDeinitRequest *msgDeviceUpdateReq) {
173+
// TODO!! //
173174
}
174175

175176
/*******************************************************************************/

src/components/i2c/WipperSnapper_I2C.h

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,20 +38,22 @@ class WipperSnapper_Component_I2C {
3838
bool isInitialized();
3939

4040
wippersnapper_i2c_v1_I2CBusScanResponse scanAddresses();
41-
bool initI2CDevice(wippersnapper_i2c_v1_I2CDeviceInitRequest *msgDeviceInitReq);
41+
bool
42+
initI2CDevice(wippersnapper_i2c_v1_I2CDeviceInitRequest *msgDeviceInitReq);
4243
// TODO: Update Implementation
4344
// THIS NEEDS AN UPDATE REQUEST
44-
bool updateI2CDevice(wippersnapper_i2c_v1_I2CDeviceDeinitRequest *msgDeviceUpdateReq);
45-
bool deinitI2CDevice(wippersnapper_i2c_v1_I2CDeviceDeinitRequest *msgDeviceDeinitReq);
46-
45+
bool updateI2CDevice(
46+
wippersnapper_i2c_v1_I2CDeviceDeinitRequest *msgDeviceUpdateReq);
47+
bool deinitI2CDevice(
48+
wippersnapper_i2c_v1_I2CDeviceDeinitRequest *msgDeviceDeinitReq);
4749

4850
void update();
4951

5052
private:
5153
bool _isInit;
5254
int32_t _portNum;
5355
TwoWire *_i2c = nullptr;
54-
std::vector<WipperSnapper_I2C_Driver*> drivers;
56+
std::vector<WipperSnapper_I2C_Driver *> drivers;
5557
// Sensor drivers
5658
WipperSnapper_I2C_Driver_AHTX0 *_ahtx0 = nullptr;
5759
};

src/drivers/WipperSnapper_I2C_Driver.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ class WipperSnapper_I2C_Driver {
198198
@returns Time when the humidity sensor was last queried, in seconds.
199199
*/
200200
/*********************************************************************************/
201-
virtual long getHumidSensorPeriodPrv() { return _humidSensorPeriodPrv;}
201+
virtual long getHumidSensorPeriodPrv() { return _humidSensorPeriodPrv; }
202202

203203
/*******************************************************************************/
204204
/*!
@@ -216,7 +216,7 @@ class WipperSnapper_I2C_Driver {
216216
bool _isInitialized = false; ///< True if the I2C device was initialized
217217
///< successfully, False otherwise.
218218
uint16_t _sensorAddress; ///< The I2C device's unique I2C address.
219-
DriverType_t _driverType; ///< The type of I2C driver.
219+
DriverType_t _driverType; ///< The type of I2C driver.
220220
long _tempSensorPeriod =
221221
-1L; ///< The time period between reading the temperature sensor's value.
222222
long _humidSensorPeriod =

0 commit comments

Comments
 (0)