Skip to content

Commit b4b6988

Browse files
committed
fix(TMP119): update copyright year + log config failures
1 parent 4f5323f commit b4b6988

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/components/i2c/drivers/WipperSnapper_I2C_Driver_TMP119.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* please support Adafruit and open-source hardware by purchasing
88
* products from Adafruit!
99
*
10-
* Copyright (c) Tyeth Gundry 2025 for Adafruit Industries.
10+
* Copyright (c) Tyeth Gundry 2026 for Adafruit Industries.
1111
*
1212
* MIT license, all text here must be included in any redistribution.
1313
*
@@ -58,10 +58,10 @@ class WipperSnapper_I2C_Driver_TMP119 : public WipperSnapper_I2C_Driver {
5858
_tmp119 = new Adafruit_TMP119();
5959
if (!_tmp119->begin((uint8_t)_sensorAddress, _i2c))
6060
return false;
61-
// Pin defaults explicitly so future library changes don't silently
62-
// alter WipperSnapper behavior.
63-
_tmp119->setMeasurementMode(TMP117_MODE_CONTINUOUS);
64-
_tmp119->setAveragedSampleCount(TMP117_AVERAGE_8X);
61+
// Explicit defaults so library changes don't alter WipperSnapper behavior.
62+
if (!_tmp119->setMeasurementMode(TMP117_MODE_CONTINUOUS) ||
63+
!_tmp119->setAveragedSampleCount(TMP117_AVERAGE_8X))
64+
WS_DEBUG_PRINTLN("Failed to reconfigure TMP119 - continuing");
6565
return true;
6666
}
6767

0 commit comments

Comments
 (0)