mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
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:
parent
6285990a5c
commit
33475cbff6
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue