doc: remove incorrect info about sensor_value

After removing the "type" and "dval" members, the documenation still
referred to these fields. This commit removes the paragraph
about checking the type of values returned from sensor.

Signed-off-by: Michał Barnaś <mb@semihalf.com>
This commit is contained in:
Michał Barnaś 2021-11-19 16:27:12 +01:00 committed by Anas Nashif
commit d692062577

View file

@ -55,12 +55,6 @@ compensates data for both channels.
:lines: 12-
:linenos:
The example assumes that the returned values have type :c:struct:`sensor_value`,
which is the case for BME280. A real application
supporting multiple sensors should inspect the :c:data:`type` field of
the :c:data:`temp` and :c:data:`press` values and use the other fields
of the structure accordingly.
Configuration and Attributes
****************************