JianyuWang0623 opened a new pull request, #22412:
URL: https://github.com/apache/nuttx/pull/22412

   ## Summary
   
   The timeout of the NXInit `wait` command is an integer number of 
milliseconds and defaults to 5000, not fractional seconds. Fix the description 
and the example to match the implementation in 
https://github.com/apache/nuttx-apps/pull/4135.
   
   The previous text came from https://github.com/apache/nuttx/pull/22301.
   
   ## Impact
   
   Documentation only. The command reference and the example now read `wait 
<path> [<timeout_ms>]` with an integer timeout in milliseconds.
   
   ## Testing
   
   Build Host: Linux x86_64, Sphinx 8.1.3. Target: `Documentation/` of nuttx 
master `24f2db7fe8` with this branch on top. Run: `cd Documentation && make 
html`.
   
   ```
   build succeeded.
   ```
   
   The rendered section of the page:
   
   ```
   Waiting for a File
   ------------------
   
       wait <path> [<timeout_ms>]
   
   wait checks for the existence of <path> with stat() every 10 ms
   and returns when the file is found. <timeout_ms> is an integer
   number of milliseconds; it defaults to 5000. When the timeout is
   reached, the command only warns and continues, so the next command
   still runs.
   
       on boot
           start foo_driver
           wait /dev/xxx 2000
           start bar
   ```
   


-- 
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]

Reply via email to