| 218 | } |
| 219 | |
| 220 | bool Color::RequestColorChannelReport |
| 221 | ( |
| 222 | uint8 const coloridx, |
| 223 | uint8 const _instance, |
| 224 | Driver::MsgQueue const _queue |
| 225 | ) |
| 226 | { |
| 227 | /* make sure our coloridx is valid */ |
| 228 | if ((m_dom.GetFlagShort(STATE_FLAG_COLOR_CHANNELS)) & (1<<(coloridx))) { |
| 229 | Msg* msg = new Msg("ColorCmd_Get", GetNodeId(), REQUEST, FUNC_ID_ZW_SEND_DATA, true, true, FUNC_ID_APPLICATION_COMMAND_HANDLER, GetCommandClassId()); |
| 230 | msg->SetInstance( this, _instance ); |
| 231 | msg->Append( GetNodeId() ); |
| 232 | msg->Append( 3 ); |
| 233 | msg->Append( GetCommandClassId() ); |
| 234 | msg->Append( ColorCmd_Get ); |
| 235 | msg->Append( coloridx ); |
| 236 | msg->Append( GetDriver()->GetTransmitOptions() ); |
| 237 | GetDriver()->SendMsg( msg, _queue ); |
| 238 | return true; |
| 239 | } |
| 240 | return false; |
| 241 | |
| 242 | } |
| 243 | |
| 244 | |
| 245 | //----------------------------------------------------------------------------- |
nothing calls this directly
no test coverage detected