Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(usbrelay): poll for status to confirm
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>
- Loading branch information