drivers: sensor: ccs811: enable drive mode 4

This mode is documented as producing a raw result every 250 ms that the
application must convert to eCO2 and eTVOC readings.  In practice
application firmware 2.0 appears to convert the readings as with all
other rates.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
This commit is contained in:
Peter A. Bigot 2018-11-23 06:51:02 -06:00 committed by Maureen Helm
commit 2dd990ad55
3 changed files with 10 additions and 5 deletions

View file

@ -41,7 +41,7 @@ extern "C" {
#define CCS811_MODE_IAQ_1SEC 0x10
#define CCS811_MODE_IAQ_10SEC 0x20
#define CCS811_MODE_IAQ_60SEC 0x30
#define CCS811_MODE_IAQ_RAW_250MSEC 0x40
#define CCS811_MODE_IAQ_250MSEC 0x40
/** @brief Information collected from the sensor on each fetch. */
struct ccs811_result_type {