Merge pull request #57 from dirkmueller/init_spi3w

initialize spi3w_en
This commit is contained in:
Carter Nelson 2021-07-30 09:38:27 -07:00 committed by GitHub
commit 0c4398f719
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -161,6 +161,7 @@ void Adafruit_BME280::setSampling(sensor_mode mode,
_humReg.osrs_h = humSampling;
_configReg.filter = filter;
_configReg.t_sb = duration;
_configReg.spi3w_en = 0;
// making sure sensor is in sleep mode before setting configuration
// as it otherwise may be ignored