mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 06:39:01 +08:00
sensors/bh1749nuc_uorb.c: add sensor reset
This commit is contained in:
@@ -505,6 +505,11 @@ int bh1749nuc_register_uorb(int devno, FAR struct bh1749nuc_config_s *config)
|
||||
goto ir_err;
|
||||
}
|
||||
|
||||
/* SW Reset */
|
||||
|
||||
bh1749nuc_putreg8(&dev->dev, BH1749NUC_SYSTEM_CONTROL,
|
||||
BH1749NUC_SYSTEM_CONTROL_SW_RESET);
|
||||
|
||||
#ifdef CONFIG_SENSORS_BH1749NUC_POLL
|
||||
/* Create thread for polling sensor data */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user