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

Reset send attemp for a channel if write was successful [Control+] #127

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

vicocz
Copy link
Contributor

@vicocz vicocz commented Nov 2, 2024

During my work on #125 I've noticed (thx to port output command feedback) that a channel value is written 10 times (if it does not change in the meantime) due to the fact send attempts are not reset. Additionally write delay was 60ms which means that for hubs with several ports single round might take e.g. 9 ports * 60 ms. It might delay application of a channel value by circa 400 ms in some teoretical situations.

Additionally I've inverted IFs so as there are less return true lines.

Tried to optimize it:

  • decreased send wait time to 10ms
  • reset send attempts on success

Dev tested on my TechnicHub.

@vicocz vicocz changed the title Reset send attemp for channel if write was successful [Control+] Reset send attemp for a channel if write was successful [Control+] Nov 2, 2024
@vicocz vicocz marked this pull request as ready for review November 2, 2024 13:10
@vicocz vicocz marked this pull request as draft November 13, 2024 19:58
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