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/09/28 03:40:08 UTC
(nuttx) 07/10: drivers/sensors: clear pollpri events after get events
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 05f5517f4f2321296e177ca25b16ea157153c07c
Author: dongjiuzhu1 <do...@xiaomi.com>
AuthorDate: Wed Jul 10 17:52:19 2024 +0800
drivers/sensors: clear pollpri events after get events
Signed-off-by: dongjiuzhu1 <do...@xiaomi.com>
---
drivers/sensors/sensor.c | 1 +
1 file changed, 1 insertion(+)
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;