Set CONTROLHUMID before CONTROL

This commit is contained in:
Kevin Townsend 2015-08-31 23:48:25 +02:00
parent 8bf92cf151
commit 0e61e7b726
1 changed files with 1 additions and 1 deletions

View File

@ -64,8 +64,8 @@ bool Adafruit_BME280::begin(uint8_t a) {
return false;
readCoefficients();
write8(BME280_REGISTER_CONTROLHUMID, 0x03); // Set before CONTROL (DS 5.4.3)
write8(BME280_REGISTER_CONTROL, 0x3F);
write8(BME280_REGISTER_CONTROLHUMID, 0x03);
return true;
}