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

Method ClearScene

cpp/src/command_classes/CentralScene.cpp:628–650  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

626}
627
628void CentralScene::ClearScene
629(
630 uint32 sceneID
631)
632{
633
634 uint8 _instance;
635 if (m_TimersSet.find(sceneID) != m_TimersSet.end()) {
636 _instance = m_TimersSet.at(sceneID);
637 } else {
638 Log::Write( LogLevel_Warning, "Can't find Timer in TimerSet List");
639 return;
640 }
641
642 if( ValueList* value = static_cast<ValueList*>( GetValue( _instance, sceneID ) ) )
643 {
644 /* plus one, as we have our own "inactive" entry at index 0 */
645 value->OnValueRefreshed( 0 );
646 value->Release();
647 }
648 m_TimersSet.erase(sceneID);
649
650}

Callers

nothing calls this directly

Calls 5

WriteFunction · 0.85
findMethod · 0.80
endMethod · 0.45
OnValueRefreshedMethod · 0.45
ReleaseMethod · 0.45

Tested by

no test coverage detected