Skip to content

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