| 347 | } |
| 348 | |
| 349 | bool CSLCommandHandler::PowerOn(const cec_logical_address iInitiator, const cec_logical_address iDestination) |
| 350 | { |
| 351 | if (iDestination != CECDEVICE_TV) |
| 352 | { |
| 353 | /* LG devices only allow themselves to be woken up by the TV with a vendor command */ |
| 354 | cec_command command; |
| 355 | |
| 356 | if (!m_bSLEnabled) |
| 357 | TransmitVendorID(CECDEVICE_TV, iDestination, CEC_VENDOR_LG, false); |
| 358 | |
| 359 | cec_command::Format(command, CECDEVICE_TV, iDestination, CEC_OPCODE_VENDOR_COMMAND); |
| 360 | command.PushBack(SL_COMMAND_POWER_ON); |
| 361 | command.PushBack(0); |
| 362 | return Transmit(command, false, false); |
| 363 | } |
| 364 | |
| 365 | return CCECCommandHandler::PowerOn(iInitiator, iDestination); |
| 366 | } |
| 367 | |
| 368 | bool CSLCommandHandler::ActivateSource(bool bTransmitDelayedCommandsOnly /* = false */) |
| 369 | { |