-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
shell: Fix shell init procedure when configured as inactive on startup #67400
shell: Fix shell init procedure when configured as inactive on startup #67400
Conversation
76f2714
to
08a27a0
Compare
The previous behavior of the CONFIG_SHELL_AUTOSTART option, where setting it to 'n' disabled shell interaction at startup but kept the logger active as a shell backend, was inconsistent. Now, when CONFIG_SHELL_AUTOSTART is set to 'n', both the shell and the logger are inactive at startup. Calling the shell_start function will activate them and print any pending logs. This change ensures a more consistent and logical behavior regarding shell and logger activity at startup. Additionally, now when the shell_stop function is called, both the shell and the logger are halted. This enhancement ensures that stopping the shell also effectively stops the associated logger. Signed-off-by: Jakub Rzeszutko <[email protected]>
08a27a0
to
68097cc
Compare
@nordic-krch @henrikbrixandersen please let me know if there is anything else to do? |
@carlescufi I think we can merge this one. |
@@ -798,6 +799,9 @@ struct shell_ctx { | |||
/** When bypass is set, all incoming data is passed to the callback. */ | |||
shell_bypass_cb_t bypass; | |||
|
|||
/*!< Logging level for a backend. */ |
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.
this should be:
/*!< Logging level for a backend. */ | |
/** Logging level for a backend. */ |
Any chance you could follow up with a commit to fix this? given this is API, it's always nicer if documentation is accurate there. Thanks!
The previous behavior of the
CONFIG_SHELL_AUTOSTART
option, where setting it to 'n' disabled shell interaction at startup but kept the logger active as a shell backend, was inconsistent.Now, when
CONFIG_SHELL_AUTOSTART
is set to 'n', both the shell and the logger are inactive at startup. Calling theshell_star
function will activate them and print any pending logs. This change ensures a more consistent and logical behavior regarding shell and logger activity at startup.Additionally, now when the
shell_stop
function is called, both the shell and the logger are halted.