drivers/sensors/sgp30.c: Reset I2C in case init msg takes too long

We have experimentally found out that this change helps with somewhat quirky CO2/VOC-sensor.
This commit is contained in:
Juha Niskanen
2020-03-05 08:01:43 -06:00
committed by Gregory Nutt
parent b4d85d6498
commit 83b6953624
2 changed files with 94 additions and 6 deletions
+5
View File
@@ -47,6 +47,11 @@
#define CONFIG_SGP30_ADDR 0x58
#define CONFIG_SGP30_RESET_ADDR 0x00
#define CONFIG_SGP30_RESET_SECOND_BYTE 0x06
#define CONFIG_SGP30_RESET_DELAY_US 300000
/****************************************************************************
* Public Types
****************************************************************************/