| 336 | } |
| 337 | |
| 338 | bool 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 | |
| 352 | bool ValueBitSet::isValidBit |
| 353 | ( |
no test coverage detected