Skip to content

Added a function for sending a log message over KISS to the host. #110

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 1 commit into
base: master
Choose a base branch
from

Conversation

alligitor
Copy link

Simple function that uses CMD_LOG opcode for sending a string to the host.
Message has:
Log Level
Tag
Length of message
Message

It has a limit of 256 characters for the message.

Messages are not \0 terminated since there is a length field.

I do have a concern about this code but not sure if it's a problem.
The code allocates a 257 byte buffer on the stack.. It is kinda large for embedded systems. Not sure if this is acceptable.

Mark is working on a more robust/comprehensive logging system. Feel free to decline if not in line with future plans.

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.

1 participant