mirror of
https://github.com/apache/nuttx.git
synced 2026-06-10 11:23:34 +08:00
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:
committed by
Gregory Nutt
parent
b4d85d6498
commit
83b6953624
@@ -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
|
||||
****************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user