Skip to content

Commit

Permalink
Fix auto-detect init() always using default bus
Browse files Browse the repository at this point in the history
  • Loading branch information
Ohnics authored and winkj committed Apr 20, 2022
1 parent d2f540f commit 7ba566f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SHTSensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ bool SHTSensor::init(TwoWire & wire)
++i) {
mSensorType = AUTO_DETECT_SENSORS[i];
delay(40); // TODO: this was necessary to make SHT4x autodetect work; revisit to find root cause
if (init()) {
if (init(wire)) {
detected = true;
break;
}
Expand Down

0 comments on commit 7ba566f

Please sign in to comment.