diff --git a/drivers/sensors/sensor.c b/drivers/sensors/sensor.c index 7951f840e2..7ec0530cca 100644 --- a/drivers/sensors/sensor.c +++ b/drivers/sensors/sensor.c @@ -950,6 +950,7 @@ static int sensor_ioctl(FAR struct file *filep, int cmd, unsigned long arg) nxrmutex_lock(&upper->lock); *(FAR unsigned int *)(uintptr_t)arg = user->event; user->event = 0; + user->changed = false; nxrmutex_unlock(&upper->lock); } break;