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 2022/01/02 02:45:11 UTC
[incubator-nuttx-apps] branch master updated: hts221_reader_main.c: Fix the start IOCTL.
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/incubator-nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new 33475cb hts221_reader_main.c: Fix the start IOCTL.
33475cb is described below
commit 33475cbff604ecba73dcd90802e83bd4e6197742
Author: Abdelatif Guettouche <ab...@espressif.com>
AuthorDate: Sat Jan 1 20:35:33 2022 +0100
hts221_reader_main.c: Fix the start IOCTL.
SNIOC_START is not handled by the hts221 driver.
Signed-off-by: Abdelatif Guettouche <ab...@espressif.com>
---
examples/hts221_reader/hts221_reader_main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/examples/hts221_reader/hts221_reader_main.c b/examples/hts221_reader/hts221_reader_main.c
index 89affb8..f77bbfd 100644
--- a/examples/hts221_reader/hts221_reader_main.c
+++ b/examples/hts221_reader/hts221_reader_main.c
@@ -55,7 +55,7 @@ int main(int argc, FAR char *argv[])
return -ENOENT;
}
- ret = ioctl(fileno(sensor), SNIOC_START, 0);
+ ret = ioctl(fileno(sensor), SNIOC_START_CONVERSION, 0);
if (ret < 0)
{
printf("IOCTL SNIOC_START failed %d\n", ret);