Skip to content

Prevent timeout when waiting for ACK#65

Open
tvogel wants to merge 1 commit into
DFRobot:masterfrom
tvogel:tv/fix-timeouts
Open

Prevent timeout when waiting for ACK#65
tvogel wants to merge 1 commit into
DFRobot:masterfrom
tvogel:tv/fix-timeouts

Conversation

@tvogel

@tvogel tvogel commented Nov 28, 2024

Copy link
Copy Markdown

... 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

tvogel commented Jan 10, 2025

Copy link
Copy Markdown
Author

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