-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nrf_modem: doc: update NRF_SO_RCVTIMEO for accept #41
Conversation
8ad124f
to
ca47186
Compare
1db6005
to
903b8c8
Compare
Updated documentation to use macro, except changelog. |
This comment was marked as resolved.
This comment was marked as resolved.
Found some more things we can improve while reviewing this, so I opened #42. |
7f76aac
to
b5c71c9
Compare
nrf_modem/doc/fault_handling.rst
Outdated
@@ -35,19 +35,19 @@ The application can reinitialize the modem by reinitializing the Modem library t | |||
.. important:: | |||
If modem traces are enabled, the modem continues to output trace data (a coredump) in the event of a fault, even after signaling the fault to the application. | |||
To make sure the application is able to retrieve the coredump correctly, the application must not re-initialize the modem until all the outstanding trace data has been processed. | |||
The :c:func:`nrf_modem_trace_get()` function will return ``-ENODATA`` when all outstanding trace data has been processed by the application. | |||
The :c:func:`nrf_modem_trace_get()` function will return :c:macro:`-NRF_ENODATA` when all outstanding trace data has been processed by the application. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it work to have the -
minus in the macro name? Those generate links in HTML to the macro definition, how are they working with the minus sign in front?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is a good point..
Maybe do as @MirkoCovizzi suggested in #42, and write
return negative :c:macro:`NRF_ENODATA`
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, updated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Last changes ended up in the wrong commit, if I'm not mistaken.
89c2422
to
52dac43
Compare
Use :c:macro: for errnos. Signed-off-by: Eivind Jølsgard <[email protected]>
The NRF_SO_RCVTIMEO is used to set the timeout in accept. Signed-off-by: Eivind Jølsgard <[email protected]>
52dac43
to
b47de7e
Compare
The NRF_SO_RCVTIMEO is used to set the timeout in accept.