Skip to content

Commit 6deba1d

Browse files
committed
clang-format
1 parent 5be2eb1 commit 6deba1d

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

src/components/i2c/drivers/WipperSnapper_I2C_Driver_MLX90632D.h

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
*/
2727
/**************************************************************************/
2828
class WipperSnapper_I2C_Driver_MLX90632D : public WipperSnapper_I2C_Driver {
29-
public:
29+
public:
3030
/*******************************************************************************/
3131
/*!
3232
@brief Constructor for an MLX90632 sensor.
@@ -71,7 +71,8 @@ class WipperSnapper_I2C_Driver_MLX90632D : public WipperSnapper_I2C_Driver {
7171
}
7272
_mlx90632 = new Adafruit_MLX90632();
7373
// attempt to initialize MLX90632
74-
if (!_mlx90632->begin(_sensorAddress, _i2c)) return false;
74+
if (!_mlx90632->begin(_sensorAddress, _i2c))
75+
return false;
7576

7677
return ConfigureAndPrintSensorInfo();
7778
}
@@ -164,7 +165,7 @@ class WipperSnapper_I2C_Driver_MLX90632D : public WipperSnapper_I2C_Driver {
164165
WS_DEBUG_PRINTLN(F("Failed to start single measurement"));
165166
return false;
166167
}
167-
delay(510); // Wait for measurement to complete @ 2Hz
168+
delay(510); // Wait for measurement to complete @ 2Hz
168169
}
169170

170171
// Only check new data flag - much more efficient for continuous mode
@@ -202,7 +203,7 @@ class WipperSnapper_I2C_Driver_MLX90632D : public WipperSnapper_I2C_Driver {
202203
tempEvent->temperature = _deviceTemp;
203204
return true;
204205
}
205-
return false; // sensor not read recently, return false
206+
return false; // sensor not read recently, return false
206207
}
207208

208209
/*******************************************************************************/
@@ -219,14 +220,14 @@ class WipperSnapper_I2C_Driver_MLX90632D : public WipperSnapper_I2C_Driver {
219220
tempEvent->temperature = _objectTemp;
220221
return true;
221222
}
222-
return false; // sensor not read recently, return false
223+
return false; // sensor not read recently, return false
223224
}
224225

225-
protected:
226-
double _deviceTemp; ///< Device temperature in Celsius
227-
double _objectTemp; ///< Object temperature in Celsius
228-
uint32_t _lastRead; ///< Last time the sensor was read in milliseconds
229-
Adafruit_MLX90632 *_mlx90632 = nullptr; ///< MLX90632 object
226+
protected:
227+
double _deviceTemp; ///< Device temperature in Celsius
228+
double _objectTemp; ///< Object temperature in Celsius
229+
uint32_t _lastRead; ///< Last time the sensor was read in milliseconds
230+
Adafruit_MLX90632 *_mlx90632 = nullptr; ///< MLX90632 object
230231
};
231232

232-
#endif // WipperSnapper_I2C_Driver_MLX90632
233+
#endif // WipperSnapper_I2C_Driver_MLX90632

0 commit comments

Comments
 (0)