Skip to content
Commit 0a6f8c1a authored by Aapo Vienamo's avatar Aapo Vienamo Committed by Kumar Gala
Browse files

drivers: sensor: ccs811: Fix value conversion



The arithmetic performed on the CO2 and VOC measurements is pointless as
the units of the sensor already match those of the API, furthermore the
multiplication will overflow the u32_t with CO2 or VOC readings greater
than 4294 ppm or ppb. This CO2 concentration is achievable by breathing
at the sensor.

Signed-off-by: default avatarAapo Vienamo <aapo.vienamo@iki.fi>
parent 5ac590a3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment