From a34007b81f3a812e8e1eaaa125014b2199128147 Mon Sep 17 00:00:00 2001 From: raiden00pl Date: Tue, 23 Apr 2024 19:24:11 +0200 Subject: [PATCH] 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 cc3583898e6..8e49383c43e 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 */