Skip to content

Allow user to specify a bigger output buffer #25

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

joemcool
Copy link

This PR creates a macro CONFIG_SHELL_OUT_BUFFER_LEN which defines the length of the output buffer. This should be large enough to accommodate most large writes via the shell_print functions, but still small enough to fit in a single shell_bwriter call (ie, UINT_8T_MAX, 255 bytes). This buffer is also statically allocated, and should not be so large that it uses all the available RAM in the system. The macro is set to the original output buffer size (30 bytes).

This PR creates a macro CONFIG_SHELL_OUT_BUFFER_LEN which defines the
length of the output buffer.  This should be large enough to accommodate
most large writes via the shell_print functions, but still small enough
to fit in a single shell_bwriter call (ie, for Telnet, smaller than the
TCP Maximum Transmission Unit, 1500 bytes).  This buffer is also
statically allocated, and should not be so large that it uses all the
available RAM in the system.  The macro is set to the original output
buffer size (30 bytes).
@geekfactory
Copy link
Owner

Thank you for submitting your pull requests. I'll review them soon and try to release an updated version of the library soon.

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.

2 participants