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 {
51
51
@brief Destructor for an MLX90632 sensor.
52
52
*/
53
53
/* ******************************************************************************/
54
- ~WipperSnapper_I2C_Driver_MLX90632D () {
55
- if (_mlx90632){
54
+ ~WipperSnapper_I2C_Driver_MLX90632D () {
55
+ if (_mlx90632) {
56
56
delete _mlx90632;
57
57
_mlx90632 = nullptr ;
58
58
}
@@ -67,8 +67,7 @@ class WipperSnapper_I2C_Driver_MLX90632D : public WipperSnapper_I2C_Driver {
67
67
bool begin () {
68
68
_mlx90632 = new Adafruit_MLX90632 ();
69
69
// attempt to initialize MLX90632
70
- if (!_mlx90632->begin (_sensorAddress, _i2c))
71
- return false ;
70
+ if (!_mlx90632->begin (_sensorAddress, _i2c)) return false ;
72
71
73
72
return ConfigureAndPrintSensorInfo ();
74
73
}
@@ -264,7 +263,7 @@ class WipperSnapper_I2C_Driver_MLX90632D : public WipperSnapper_I2C_Driver {
264
263
WS_DEBUG_PRINTLN (F (" Failed to start single measurement" ));
265
264
return false ;
266
265
}
267
- delay (510 ); // Wait for measurement to complete @ 2Hz
266
+ delay (510 ); // Wait for measurement to complete @ 2Hz
268
267
}
269
268
270
269
// Only check new data flag - much more efficient for continuous mode
@@ -285,7 +284,6 @@ class WipperSnapper_I2C_Driver_MLX90632D : public WipperSnapper_I2C_Driver {
285
284
WS_DEBUG_PRINTLN (F (" No new data available, skipping read" ));
286
285
}
287
286
288
-
289
287
return result;
290
288
}
291
289
You can’t perform that action at this time.
0 commit comments