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

When level is unknown, don't go up but wait for a first setLevel command #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mosseb
Copy link
Contributor

@mosseb mosseb commented Jun 15, 2020

Allow LEVEL_NONE as valid in the StoredState.
At initialization, don't go up immediately, but wait for a setLevel
command that is 0 or 100 to start moving.
Only then, go to the STATE_RESETTING state.
When in STATE_RESETTING state, don't accept other setLevel or
stop commands until the move is finished, that is we are back in
STATE_IDLE with a known level.

Allow LEVEL_NONE as valid in the StoredState.
At initialization, don't go up immediately, but wait for a setLevel
command that is 0 or 100 to start moving.
Only then, go to the STATE_RESETTING state.
When in STATE_RESETTING state, don't accept other setLevel or
stop commands until the move is finished, that is we are back in
STATE_IDLE with a known level.
@cribskip
Copy link

@marvinroger I beg you, please merge this PR :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants