Skip to content
Commit 91228142 authored by Paul Sokolovsky's avatar Paul Sokolovsky Committed by Maureen Helm
Browse files

sensors: Redefine SENSOR_CHAN_DISTANCE to be in meters



Most of sensor channels defined by Zephyr use the main, unscaled
SI unit. We also have SENSOR_CHAN_ALTITUDE which is defined in
meters. So, it only makes sense to define distance in meters too

The only driver supporting SENSOR_CHAN_DISTANCE as of now is
vl53l0x.c, which was updated accordingly. Also, update doc links
in the driver based on the review comment.

Fixes: #5693

Signed-off-by: default avatarPaul Sokolovsky <paul.sokolovsky@linaro.org>
parent ce9a5a23
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment