Skip to content
Commit 5eb5f3d6 authored by Jordan Yates's avatar Jordan Yates Committed by Carles Cufí
Browse files

sensor: bme280: only configure mode on PM suspend/resume



Update power management to only start/stop periodic measurements in
`CONFIG_BME280_MODE_NORMAL`, instead of re-initialising the chip
completely.

In `CONFIG_BME280_MODE_FORCED`, there is nothing to do when suspending,
as the sensor is already in its lowest power mode.

Signed-off-by: default avatarJordan Yates <jordan@embeint.com>
parent ecfb4c76
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment