Skip to content

Commit fccfd68

Browse files
authored
Restore correct register value on HTS221 shutdown
1 parent b6aaf99 commit fccfd68

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/MKRENV.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ void ENVClass::end()
103103
// shutdown VEML6075
104104
i2cWriteWord(VEML6075_ADDRESS, VEML6075_UV_CONF_REG, 0x0001);
105105

106+
// refresh the content of HTS221's internal registers via BOOT bit
107+
i2cWrite(HTS221_ADDRESS, HTS221_CTRL2_REG, 0x80);
108+
106109
// disable HTS221
107110
i2cWrite(HTS221_ADDRESS, HTS221_CTRL1_REG, 0x00);
108111

0 commit comments

Comments
 (0)