mirror of
https://github.com/apache/nuttx.git
synced 2026-08-05 22:29:02 +00: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:
parent
b4d85d6498
commit
83b6953624
2 changed files with 94 additions and 6 deletions
|
|
@ -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
|
||||
****************************************************************************/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue