testing/sensortest: fix cmd argument mismatch(follow new sensor driver)
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
parent
147a796a7a
commit
eef03ad0a1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user