Skip to content
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

Merged
merged 2 commits into from
Feb 23, 2024

Conversation

eivindj-nordic
Copy link
Collaborator

The NRF_SO_RCVTIMEO is used to set the timeout in accept.

lemrey

This comment was marked as resolved.

@eivindj-nordic eivindj-nordic force-pushed the accept_timeo branch 2 times, most recently from 1db6005 to 903b8c8 Compare February 21, 2024 12:04
@eivindj-nordic
Copy link
Collaborator Author

Use :c:macro: for errnos

Updated documentation to use macro, except changelog.

@lemrey

This comment was marked as resolved.

@anhmolt
Copy link
Collaborator

anhmolt commented Feb 21, 2024

Found some more things we can improve while reviewing this, so I opened #42.

@eivindj-nordic eivindj-nordic force-pushed the accept_timeo branch 2 times, most recently from 7f76aac to b5c71c9 Compare February 22, 2024 07:15
@@ -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.
Copy link
Owner

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?

Copy link
Collaborator

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`

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, updated.

Copy link
Collaborator

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.

@eivindj-nordic eivindj-nordic force-pushed the accept_timeo branch 3 times, most recently from 89c2422 to 52dac43 Compare February 23, 2024 08:23
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]>
@lemrey lemrey merged commit b8d98b1 into lemrey:libmodem Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants