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

Method SetBitHelp

cpp/src/value_classes/ValueBitSet.cpp:338–350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

336}
337
338bool ValueBitSet::SetBitHelp
339(
340 uint8 _idx,
341 string help
342)
343{
344 if (isValidBit(_idx)) {
345 Localization::Get()->SetValueItemHelp(m_id.GetCommandClassId(), m_id.GetIndex(), -1, _idx, Localization::Get()->GetSelectedLang());
346 return true;
347 }
348 Log::Write(LogLevel_Warning, m_id.GetNodeId(), "SetBitHelp: Bit %d is not valid with BitMask %d", _idx, m_BitMask);
349 return false;
350}
351
352bool ValueBitSet::isValidBit
353(

Callers 1

SetValueHelpMethod · 0.80

Calls 6

WriteFunction · 0.85
SetValueItemHelpMethod · 0.80
GetSelectedLangMethod · 0.80
GetNodeIdMethod · 0.80
GetFunction · 0.50
GetCommandClassIdMethod · 0.45

Tested by

no test coverage detected