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

Replace ugly sleep in sysfs example #2

Open
simonprickett opened this issue Aug 13, 2018 · 0 comments
Open

Replace ugly sleep in sysfs example #2

simonprickett opened this issue Aug 13, 2018 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@simonprickett
Copy link
Owner

The sysfs example has an ugly sleep that isn't 100% reliable - it is used to wait for the OS to finish making a symlink before the code tries to access it. Replace with an actual check that the link exists and wait for that rather than just a fixed time and hope it exists...

https://stackoverflow.com/questions/24297693/how-to-check-if-soft-link-exists-or-not

@simonprickett simonprickett added the enhancement New feature or request label Aug 13, 2018
@simonprickett simonprickett self-assigned this Aug 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant