Skip to content
Commit 2ddd2211 authored by Jan Kuliga's avatar Jan Kuliga Committed by Carles Cufí
Browse files

bme680: Rework setting the spi_mem_page accordingly to the datasheet



According to the BME680 datasheet, only the spi_mem_page bit can be
changed in its 8-bit register. Therefore we shouldn't just write 0s
to the remaining bits, but update the register content in read-modify-write
fashion instead.
Rework the bme680_set_mem_page(), bme680_init() and register-access
macros.

Signed-off-by: default avatarJan Kuliga <jtkuliga@gmail.com>
parent 2ce143a3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment