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

Method SetInstances

cpp/src/command_classes/CommandClass.cpp:175–188  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Instances as set by the MultiInstance V1 command class -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

173// Instances as set by the MultiInstance V1 command class
174//-----------------------------------------------------------------------------
175void CommandClass::SetInstances
176(
177 uint8 const _instances
178)
179{
180 // Ensure we have a set of reported variables for each new instance
181 if( !m_dom.GetFlagBool(STATE_FLAG_AFTERMARK) )
182 {
183 for( uint8 i=0; i<_instances; ++i )
184 {
185 SetInstance( i+1 );
186 }
187 }
188}
189
190//-----------------------------------------------------------------------------
191// <CommandClass::SetInstance>

Callers 1

Calls 1

GetFlagBoolMethod · 0.80

Tested by

no test coverage detected