This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 8de9dd9515 drivers/sensors/lsm6dso32: fixed byte read command to 
include start.
8de9dd9515 is described below

commit 8de9dd9515b7e4c50c9c92123b0060f639245a84
Author: Matteo Golin <[email protected]>
AuthorDate: Tue Feb 18 17:14:26 2025 -0500

    drivers/sensors/lsm6dso32: fixed byte read command to include start.
    
    This is required to meet the communication requirements as per the
    LSM6DSO32 datasheet. It doesn't cause issues on some MCUs (RP2040), but
    prevents successful reads on others (STM32).
    
    Signed-off-by: Matteo Golin <[email protected]>
---
 drivers/sensors/lsm6dso32_uorb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/sensors/lsm6dso32_uorb.c b/drivers/sensors/lsm6dso32_uorb.c
index fbe3b6df0a..54b13e519a 100644
--- a/drivers/sensors/lsm6dso32_uorb.c
+++ b/drivers/sensors/lsm6dso32_uorb.c
@@ -386,7 +386,7 @@ static int lsm6dso32_read_bytes(FAR struct lsm6dso32_dev_s 
*priv,
 
   cmd[1].frequency = CONFIG_SENSORS_LSM6DSO32_I2C_FREQUENCY;
   cmd[1].addr = priv->addr;
-  cmd[1].flags = I2C_M_NOSTART | I2C_M_READ;
+  cmd[1].flags = I2C_M_READ;
   cmd[1].buffer = buf;
   cmd[1].length = nbytes;
 

Reply via email to