From 33475cbff604ecba73dcd90802e83bd4e6197742 Mon Sep 17 00:00:00 2001 From: Abdelatif Guettouche Date: Sat, 1 Jan 2022 20:35:33 +0100 Subject: [PATCH] hts221_reader_main.c: Fix the start IOCTL. SNIOC_START is not handled by the hts221 driver. Signed-off-by: Abdelatif Guettouche --- 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 89affb82a..f77bbfd88 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);