-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
shell: flush RX buffer on resume to prevent unexpected commands
Introduced an RX buffer flush in the backend when calling shell_start. Previously, after shell_stop, the backend continued buffering data and commands. When shell_start was called, all buffered data was processed, leading to the potential execution of commands issued while the shell was inactive. This update ensures the RX buffer is flushed upon resuming the shell, preventing unexpected command execution. Signed-off-by: Jakub Rzeszutko <jakub.rzeszutko@verkada.com>
- Loading branch information
Showing
3 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters