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

TODO: Check if pauseSerial() still gets called after duplicate STOP byte check #1

Open
featherbear opened this issue Aug 23, 2021 · 1 comment

Comments

@featherbear
Copy link
Owner

featherbear commented Aug 23, 2021

let _send = () => {
if (val == STOP_BYTE) {
if (lastSentWasStop) return;
lastSentWasStop = true;
} else lastSentWasStop = false;

Maybe send 2x STOP packets instead of 1, so the second stop packet causes

to trigger

@featherbear
Copy link
Owner Author

but tbh getSend() gets called a bunch of times and it will stop anyway

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