-
Notifications
You must be signed in to change notification settings - Fork 91
Description
The bme68x_selftest_check() API reconfigures most of the configuration registers inside the sensor during the self-test procedure. However, it does not reload the previous register values after completing the self-test.
According to the documentation, the bme68x_init() function is described as the entry point that must be called before using other APIs.
Currently, if bme68x_selftest_check() is called after initialization, it internally calls bme68x_init() again, which overwrites all previously configured settings.
This results in the loss of user-configured parameters after running the self-test.
Impact:
Sensor configuration is unintentionally reset after performing the self-test.
Users must manually reconfigure all settings after calling bme68x_selftest_check().