Skip to content

Commit 0c198dd

Browse files
committed
initialize spi3w_en
No other code path seems to initialize this variable to a defined value. Ensure set to SPI 4W.
1 parent 9d2136d commit 0c198dd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Adafruit_BME280.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ void Adafruit_BME280::setSampling(sensor_mode mode,
184184
_humReg.osrs_h = humSampling;
185185
_configReg.filter = filter;
186186
_configReg.t_sb = duration;
187+
_configReg.spi3w_en = 0;
187188

188189
// you must make sure to also set REGISTER_CONTROL after setting the
189190
// CONTROLHUMID register, otherwise the values won't be applied (see

0 commit comments

Comments
 (0)