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

Prevent timeout when waiting for ACK #65

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

Conversation

tvogel
Copy link

@tvogel tvogel commented Nov 28, 2024

... and speed up execution of all commands that only have ACK and no other reply because the 500 ms default timeout is not waited for anymore.

new waitSending():
private adaption of waitAvailable() that waits only for the ACK
packet and not one that sets _isAvailable which usually does not
happen and causes unnecessary waiting and timeout signalling;
sendStack():
use waitSending() instead of waitAvailable() because we only need
the _isSending flag to drop;

... and speed up execution of all commands that only have ACK and no other
reply because the 500 ms default timeout is not waited for anymore.

new waitSending():
	private adaption of waitAvailable() that waits only for the ACK
	packet and not one that sets _isAvailable which usually does not
	happen and causes unnecessary waiting and timeout signalling;
sendStack():
	use waitSending() instead of waitAvailable() because we only need
	the _isSending flag to drop;
@tvogel
Copy link
Author

tvogel commented Jan 10, 2025

Is this of interest? @qsjhyy

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