mirror of
https://github.com/apache/nuttx.git
synced 2026-08-29 05:10:44 +00:00
sensors/bmi270_uorb.c: fix condition for sensor stop
This commit is contained in:
parent
1985dcd192
commit
a34007b81f
1 changed files with 1 additions and 1 deletions
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue