Skip to content

Conversation

Mattemagikern
Copy link
Contributor

pre-requisite for: #96861

@zephyrbot zephyrbot added area: Tests Issues related to a particular existing or missing test area: Shell Shell subsystem labels Oct 1, 2025
@Mattemagikern Mattemagikern force-pushed the shell_history branch 2 times, most recently from 66f46ef to fd2394f Compare October 1, 2025 15:03
The ring_buffer API was not ideal for this use case, as it is designed for
concurrent access, which is not needed here. The new implementation using
k_heap is more readable and easier to maintain.

There is a slight penalty in memory usage & effectiveness due to the
overhead of k_heap, but since this isn't a production-critical path, the
trade-off is acceptable.

Signed-off-by: Måns Ansgariusson <Mansgariusson@gmail.com>
The shell history initialization function doesn't work in if the shell
instance hasn't been created through the shell macro. This removes the
function to avoid confusion.

Signed-off-by: Måns Ansgariusson <Mansgariusson@gmail.com>
Copy link

sonarqubecloud bot commented Oct 3, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Shell Shell subsystem area: Tests Issues related to a particular existing or missing test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants