sensors/bmi270_uorb.c: fix condition for sensor stop
This commit is contained in:
parent
1985dcd192
commit
a34007b81f
|
@ -164,7 +164,7 @@ static int bmi270_activate(FAR struct sensor_lowerhalf_s *lower,
|
||||||
|
|
||||||
start = true;
|
start = true;
|
||||||
}
|
}
|
||||||
else if (tmp == 1)
|
else if (!enable && tmp == 1)
|
||||||
{
|
{
|
||||||
/* One time stop */
|
/* One time stop */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue