arduino-shutters icon indicating copy to clipboard operation
arduino-shutters copied to clipboard

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

Open mosseb opened this issue 4 years ago • 1 comments

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.

mosseb avatar Jun 15 '20 21:06 mosseb

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

cribskip avatar Aug 20 '20 18:08 cribskip