linguini1 commented on issue #15787: URL: https://github.com/apache/nuttx/issues/15787#issuecomment-2644451078
> [@linguini1](https://github.com/linguini1) Your meaning is that the first call to selftest can succeed, but all subsequent ioctl calls hang? No, I mean the call to `selftest` only succeeds if it returns a non-zero error code. I cannot make any subsequent `ioctl` call due to the hanging. The hanging only seems to occur when 0 is returned from the `selftest` function. The hanging doesn't occur in my implementation of `selftest`, though. I went to line 878 of `sensor.c` where the lowerhalf `selftest` is called, and added `ret = -EINVAL` on the next line. If I do this, `orb_ioctl` doesn't hang even if my lowerhalf `selftest` call returns `0`. I cannot figure out why this would be because other `ioctl` commands in `sensor.c` return 0 with no problems. I will share an example code snippet that I have been using shortly. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
