testing/sensortest: fix cmd argument mismatch(follow new sensor driver)

Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
Jiuzhu Dong 2022-07-29 17:47:04 +08:00 committed by Petro Karashchenko
parent 147a796a7a
commit eef03ad0a1

View File

@ -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;