Skip to content

Commit 7ba566f

Browse files
Ohnicswinkj
authored andcommitted
Fix auto-detect init() always using default bus
1 parent d2f540f commit 7ba566f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SHTSensor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ bool SHTSensor::init(TwoWire & wire)
315315
++i) {
316316
mSensorType = AUTO_DETECT_SENSORS[i];
317317
delay(40); // TODO: this was necessary to make SHT4x autodetect work; revisit to find root cause
318-
if (init()) {
318+
if (init(wire)) {
319319
detected = true;
320320
break;
321321
}

0 commit comments

Comments
 (0)