Skip to content

Commit 990f981

Browse files
committed
Board specific instance
1 parent 74437d7 commit 990f981

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/HTS.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -157,4 +157,8 @@ void HTS221Class::readHTS221Calibration()
157157
_hts221TemperatureZero = (t0degC / 8.0) - _hts221TemperatureSlope * t0Out;
158158
}
159159

160+
#ifdef ARDUINO_ARDUINO_NANO33BLE
160161
HTS221Class HTS(Wire1);
162+
#else
163+
HTS221Class HTS(Wire);
164+
#endif

0 commit comments

Comments
 (0)