File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/components/i2c/drivers Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments