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

Method UpdateMappedClass

cpp/src/command_classes/CommandClass.cpp:735–753  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Update the mapped class if there is one with BASIC level -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

733// Update the mapped class if there is one with BASIC level
734//-----------------------------------------------------------------------------
735void CommandClass::UpdateMappedClass
736(
737 uint8 const _instance,
738 uint8 const _classId,
739 uint8 const _level
740)
741{
742 if( _classId )
743 {
744 if( Node* node = GetNodeUnsafe() )
745 {
746 CommandClass* cc = node->GetCommandClass( _classId );
747 if( cc != NULL )
748 {
749 cc->SetValueBasic( _instance, _level );
750 }
751 }
752 }
753}
754
755//-----------------------------------------------------------------------------
756// <CommandClass::ClearStaticRequest>

Callers

nothing calls this directly

Calls 2

GetCommandClassMethod · 0.80
SetValueBasicMethod · 0.45

Tested by

no test coverage detected