Replies: 1 comment
-
If it is a small change, it could be a nice little PR. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So, I just played around with an LSM6DSO sensor, using this driver: https://github.com/zephyrproject-rtos/zephyr/tree/5c7f47de0fdeac237c420bc06070bf8d9d0dec03/drivers/sensor/st/lsm6dso
The driver works well and can read the IMU values easily.
Naturally, upon disrupting the I2C connection (e.g. by removing the SDA cable on the breadboard), the readings of the sensor are wrong. Also, in the UART console, I get messages like those:
However, the function
lsm6dso_sample_fetch
does not return an error code in this case. The reason is that the return values of the underlying functions is ignored, (e.g. here).Is this worth a bug report to Zephyr or should I try to approach ST to fix this?
Beta Was this translation helpful? Give feedback.
All reactions