From eef03ad0a14c411ff3213604b5fb7989865d66ea Mon Sep 17 00:00:00 2001 From: Jiuzhu Dong Date: Fri, 29 Jul 2022 17:47:04 +0800 Subject: [PATCH] testing/sensortest: fix cmd argument mismatch(follow new sensor driver) Signed-off-by: Jiuzhu Dong --- testing/sensortest/sensortest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testing/sensortest/sensortest.c b/testing/sensortest/sensortest.c index da0ad026a..6fc18b7ac 100644 --- a/testing/sensortest/sensortest.c +++ b/testing/sensortest/sensortest.c @@ -325,7 +325,7 @@ int main(int argc, FAR char *argv[]) goto open_err; } - ret = ioctl(fd, SNIOC_SET_INTERVAL, &interval); + ret = ioctl(fd, SNIOC_SET_INTERVAL, interval); if (ret < 0) { ret = -errno; @@ -337,7 +337,7 @@ int main(int argc, FAR char *argv[]) } } - ret = ioctl(fd, SNIOC_BATCH, &latency); + ret = ioctl(fd, SNIOC_BATCH, latency); if (ret < 0) { ret = -errno;