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

Set serial port to blocking while sending image #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

brenns10
Copy link

The serial port needs to be in non-blocking mode for normal operation to
use the select() loop. However, if the image being sent is especially
big (e.g. a large operating system), then the write() will eventually
need to block. So clear the non-blocking flag while sending the image,
and then set it once the image is sent.

The serial port needs to be in non-blocking mode for normal operation to
use the select() loop. However, if the image being sent is especially
big (e.g. a large operating system), then the write() will eventually
need to block. So clear the non-blocking flag while sending the image,
and then set it once the image is sent.
@brenns10 brenns10 changed the title Set serial port to blocking wile sending image Set serial port to blocking while sending image Dec 15, 2020
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