sensors/bh1749nuc_uorb.c: add sensor reset

This commit is contained in:
raiden00pl
2024-05-01 18:49:14 +02:00
committed by Xiang Xiao
parent a517f12f3d
commit 9d768498ce
+5
View File
@@ -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 */