Skip to content

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

Open
@janithpet

Description

@janithpet

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions