initialize spi3w_en

No other code path seems to initialize this variable to a defined
value. Ensure set to SPI 4W.
This commit is contained in:
Dirk Mueller 2019-08-18 00:32:24 +02:00
parent 9d2136d663
commit 0c198dd795
1 changed files with 1 additions and 0 deletions

View File

@ -184,6 +184,7 @@ void Adafruit_BME280::setSampling(sensor_mode mode,
_humReg.osrs_h = humSampling;
_configReg.filter = filter;
_configReg.t_sb = duration;
_configReg.spi3w_en = 0;
// you must make sure to also set REGISTER_CONTROL after setting the
// CONTROLHUMID register, otherwise the values won't be applied (see