MCPcopy Create free account
hub / github.com/OpenZWave/open-zwave / ClearScene

Method ClearScene

cpp/src/command_classes/SceneActivation.cpp:141–152  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Return the Scene ValueID's to defaults, after the duration has expired -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

139// Return the Scene ValueID's to defaults, after the duration has expired
140//-----------------------------------------------------------------------------
141void SceneActivation::ClearScene(uint32 _instance) {
142 if( ValueInt* value = static_cast<ValueInt*>( GetValue( _instance, SceneActivationIndex_SceneID ) ) )
143 {
144 value->OnValueRefreshed( 0 );
145 value->Release();
146 }
147 if( ValueInt* value = static_cast<ValueInt*>( GetValue( _instance, SceneActivationIndex_Duration ) ) )
148 {
149 value->OnValueRefreshed( 0 );
150 value->Release();
151 }
152}
153
154
155

Callers

nothing calls this directly

Calls 2

OnValueRefreshedMethod · 0.45
ReleaseMethod · 0.45

Tested by

no test coverage detected