File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
src/components/i2c/drivers Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -51,8 +51,8 @@ class WipperSnapper_I2C_Driver_MLX90632D : public WipperSnapper_I2C_Driver {
5151 @brief Destructor for an MLX90632 sensor.
5252 */
5353 /* ******************************************************************************/
54- ~WipperSnapper_I2C_Driver_MLX90632D () {
55- if (_mlx90632){
54+ ~WipperSnapper_I2C_Driver_MLX90632D () {
55+ if (_mlx90632) {
5656 delete _mlx90632;
5757 _mlx90632 = nullptr ;
5858 }
@@ -67,8 +67,7 @@ class WipperSnapper_I2C_Driver_MLX90632D : public WipperSnapper_I2C_Driver {
6767 bool begin () {
6868 _mlx90632 = new Adafruit_MLX90632 ();
6969 // attempt to initialize MLX90632
70- if (!_mlx90632->begin (_sensorAddress, _i2c))
71- return false ;
70+ if (!_mlx90632->begin (_sensorAddress, _i2c)) return false ;
7271
7372 return ConfigureAndPrintSensorInfo ();
7473 }
@@ -264,7 +263,7 @@ class WipperSnapper_I2C_Driver_MLX90632D : public WipperSnapper_I2C_Driver {
264263 WS_DEBUG_PRINTLN (F (" Failed to start single measurement" ));
265264 return false ;
266265 }
267- delay (510 ); // Wait for measurement to complete @ 2Hz
266+ delay (510 ); // Wait for measurement to complete @ 2Hz
268267 }
269268
270269 // Only check new data flag - much more efficient for continuous mode
@@ -285,7 +284,6 @@ class WipperSnapper_I2C_Driver_MLX90632D : public WipperSnapper_I2C_Driver {
285284 WS_DEBUG_PRINTLN (F (" No new data available, skipping read" ));
286285 }
287286
288-
289287 return result;
290288 }
291289
You can’t perform that action at this time.
0 commit comments