You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2024/04/28 05:22:03 UTC

(nuttx) 04/05: sensors/bmi270_uorb.c: fix condition for sensor stop

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

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

commit a34007b81f3a812e8e1eaaa125014b2199128147
Author: raiden00pl <ra...@railab.me>
AuthorDate: Tue Apr 23 19:24:11 2024 +0200

    sensors/bmi270_uorb.c: fix condition for sensor stop
---
 drivers/sensors/bmi270_uorb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/sensors/bmi270_uorb.c b/drivers/sensors/bmi270_uorb.c
index cc3583898e..8e49383c43 100644
--- a/drivers/sensors/bmi270_uorb.c
+++ b/drivers/sensors/bmi270_uorb.c
@@ -164,7 +164,7 @@ static int bmi270_activate(FAR struct sensor_lowerhalf_s *lower,
 
       start = true;
     }
-  else if (tmp == 1)
+  else if (!enable && tmp == 1)
     {
       /* One time stop */