You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by je...@apache.org on 2025/07/09 07:50:24 UTC
(nuttx) branch master updated (6ae3cc90827 -> a20ac0fe7c5)
This is an automated email from the ASF dual-hosted git repository.
jerpelea pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
from 6ae3cc90827 drivers/sensors/l86xxx: Make some dependency patches and update documentation
new be5c90716cc sensors/bmi270: Fix a bug sensor_time is truncated
new a20ac0fe7c5 sensors/bmi160: Fix a bug sensor_time is truncated
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
drivers/sensors/bmi160.c | 6 +++---
drivers/sensors/bmi270.c | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
(nuttx) 01/02: sensors/bmi270: Fix a bug sensor_time is truncated
Posted by je...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
jerpelea pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit be5c90716ccd25e336bcc6d7f0a3983b858ad802
Author: SPRESENSE <41...@users.noreply.github.com>
AuthorDate: Wed Jul 9 09:35:48 2025 +0900
sensors/bmi270: Fix a bug sensor_time is truncated
Fix a bug that sensor_time resolution is lost by bit shift.
Signed-off-by: SPRESENSE <41...@users.noreply.github.com>
---
drivers/sensors/bmi270.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/sensors/bmi270.c b/drivers/sensors/bmi270.c
index d0e2ae206f2..f6c68c3a8c5 100644
--- a/drivers/sensors/bmi270.c
+++ b/drivers/sensors/bmi270.c
@@ -141,11 +141,11 @@ static ssize_t bmi270_read(FAR struct file *filep, FAR char *buffer,
return 0;
}
- bmi270_getregs(priv, BMI270_DATA_8, (FAR uint8_t *)p, 15);
+ /* Set sensor_time to the lower 24 bits of SENSORTIME. */
- /* Adjust sensing time into 24 bit */
+ p->sensor_time = 0;
- p->sensor_time >>= 8;
+ bmi270_getregs(priv, BMI270_DATA_8, (FAR uint8_t *)p, 15);
return len;
}
(nuttx) 02/02: sensors/bmi160: Fix a bug sensor_time is truncated
Posted by je...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
jerpelea pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit a20ac0fe7c579ed8db15e3348acd81865bc53e4f
Author: SPRESENSE <41...@users.noreply.github.com>
AuthorDate: Wed Jul 9 09:35:48 2025 +0900
sensors/bmi160: Fix a bug sensor_time is truncated
Fix a bug that sensor_time resolution is lost by bit shift.
Signed-off-by: SPRESENSE <41...@users.noreply.github.com>
---
drivers/sensors/bmi160.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/sensors/bmi160.c b/drivers/sensors/bmi160.c
index 6cf4001ddd9..58091a9da4e 100644
--- a/drivers/sensors/bmi160.c
+++ b/drivers/sensors/bmi160.c
@@ -145,11 +145,11 @@ static ssize_t bmi160_read(FAR struct file *filep, FAR char *buffer,
return 0;
}
- bmi160_getregs(priv, BMI160_DATA_8, (FAR uint8_t *)buffer, 15);
+ /* Set sensor_time to the lower 24 bits of SENSORTIME. */
- /* Adjust sensing time into 24 bit */
+ p->sensor_time = 0;
- p->sensor_time >>= 8;
+ bmi160_getregs(priv, BMI160_DATA_8, (FAR uint8_t *)buffer, 15);
return len;
}