-
Notifications
You must be signed in to change notification settings - Fork 7.6k
drivers: sensor: Remove broken reset from apds9306 driver #90382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it work to just ignore the return value of the I2C transaction?
zephyr/drivers/sensor/nxp/fxos8700/fxos8700.c
Lines 554 to 562 in b1f9351
/* Software reset the sensor. Upon issuing a software | |
* reset command over the I2C interface, the sensor | |
* immediately resets and does not send any | |
* acknowledgment (ACK) of the written byte to the | |
* master. Therefore, do not check the return code of | |
* the I2C transaction. | |
*/ | |
config->ops->byte_write(dev, FXOS8700_REG_CTRLREG2, | |
FXOS8700_CTRLREG2_RST_MASK); |
Good idea. Let me test it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code changes look good, but the commit message needs to be updated
The reset may cause initialization issues because of a missing ACK from the sensor. The error check for the I2C communication is removed to avoid issues during the initialization. Closes zephyrproject-rtos#89850 Signed-off-by: Daniel Kampert <[email protected]>
|
The reset may cause initialization issues because of a missing ACK from the sensor. The error check for the I2C communication is removed to avoid issues during the initialization.
Closes #89850