hts221_reader_main.c: Fix the start IOCTL.

SNIOC_START is not handled by the hts221 driver.

Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
This commit is contained in:
Abdelatif Guettouche 2022-01-01 20:35:33 +01:00 committed by Xiang Xiao
parent 6285990a5c
commit 33475cbff6

View File

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