mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
WLED - Fix to not overwrite on state when not isStayOnAfterStreaming
This commit is contained in:
parent
d82a90bf65
commit
8a177be974
@ -523,7 +523,10 @@ bool LedDeviceWled::restoreState()
|
|||||||
|
|
||||||
_originalStateProperties[STATE_LIVE] = false;
|
_originalStateProperties[STATE_LIVE] = false;
|
||||||
_originalStateProperties[STATE_TRANSITIONTIME_CURRENTCALL] = 0;
|
_originalStateProperties[STATE_TRANSITIONTIME_CURRENTCALL] = 0;
|
||||||
_originalStateProperties[STATE_ON] = _isStayOnAfterStreaming;
|
if (_isStayOnAfterStreaming)
|
||||||
|
{
|
||||||
|
_originalStateProperties[STATE_ON] = true;
|
||||||
|
}
|
||||||
|
|
||||||
httpResponse response = _restApi->put(_originalStateProperties);
|
httpResponse response = _restApi->put(_originalStateProperties);
|
||||||
if ( response.error() )
|
if ( response.error() )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user