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

fix(usbrelay): poll for status to confirm #374

Merged
merged 1 commit into from
Dec 2, 2023

Conversation

fmoessbauer
Copy link
Member

The usbrelay command is async, hence we cannot immediately after changing the state check if it became active. Instead, we need to poll for some time and report back either if the state changed, or on timeout. To leave sufficent time for other parts of the code, we check until half of the RPC timeout is expired.

The usbrelay command is async, hence we cannot immediately after
changing the state check if it became active. Instead, we need to poll
for some time and report back either if the state changed, or on
timeout. To leave sufficent time for other parts of the code, we check
until half of the RPC timeout is expired.

Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
@github-actions github-actions bot requested a review from chombourger December 2, 2023 09:27
@chombourger chombourger merged commit 6a44e9f into siemens:master Dec 2, 2023
6 checks passed
@fmoessbauer fmoessbauer deleted the fm/usb-relay-async branch December 2, 2023 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants