Skip to content
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

potential problem with command reception #9

Open
DeepSOIC opened this issue Mar 12, 2021 · 0 comments
Open

potential problem with command reception #9

DeepSOIC opened this issue Mar 12, 2021 · 0 comments

Comments

@DeepSOIC
Copy link

stringComplete = true;

When the newline character arrives, a flag is set. However, reception of new characters is not stopped. In a case where several commands are sent in a row, this may cause some part of the next command end up interpreted as appended to this command (Serial has a built-in buffer, so if it is not drained regularly enough, several characters will appear to have arrived at the same time). This will break parsing of both commands.

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

No branches or pull requests

1 participant