From d6920625774e2e67c4a0b0a6cc51586726a2c2ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Barna=C5=9B?= Date: Fri, 19 Nov 2021 16:27:12 +0100 Subject: [PATCH] doc: remove incorrect info about sensor_value MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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ś --- doc/reference/peripherals/sensor.rst | 6 ------ 1 file changed, 6 deletions(-) diff --git a/doc/reference/peripherals/sensor.rst b/doc/reference/peripherals/sensor.rst index a1192e27aee..1fa757968bb 100644 --- a/doc/reference/peripherals/sensor.rst +++ b/doc/reference/peripherals/sensor.rst @@ -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 ****************************