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

Fix race condition on sendCommand.js #12

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

Conversation

leonardothehuman
Copy link

I had a real-world problem with avrgirl-arduino, which depends on this library, it turns out that, this library subscribes to receive data only after sending data to the board, on slower computers, this makes the board sends the response before the library starts listening to data, which makes the library lose the transmission and trigger a timeout error.
The change passed on the unit test, and I've successfully uploaded the blink sketch to an Arduino Uno

I had a real-world problem with avrgirl-arduino, which depends on this library, it turns out that, this library subscribes to receive data only after sending data to the board, on slower computers, this makes the board sends the response before the library starts listening to data, which makes the library lose the transmission and trigger a timeout error.
The change passed on the unit test, and I've successfully uploaded  the blink sketch to an Arduino Uno
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