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

Provide option in the Warp menu to choose whether to sleep between measurement readings when reading all sensors indefinitely #128

Open
janithpet opened this issue Oct 6, 2023 · 0 comments
Labels
Bug Something isn't working

Comments

@janithpet
Copy link
Contributor

Currently, option 'z' in the Warp menu will sleep between readings for the number of seconds given by the user.

Firstly, this number of seconds is asked in milliseconds, even though it is actually implemented in seconds.

Secondly, we can't sleep at the resolution of milliseconds, since the current implementation of the function accepts the time to sleep in seconds.

The simplest solution is to provide an option to the user asking whether they want to sleep during the delay. If they choose yes, then ask for the delay in seconds. If not, ask for the delay in seconds, and do a busy loop for that time.

@janithpet janithpet added the Bug Something isn't working label Oct 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant