MCPcopy Create free account
hub / github.com/Pulse-Eight/libcec / PowerOn

Method PowerOn

src/libcec/implementations/SLCommandHandler.cpp:349–366  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

347}
348
349bool 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
368bool CSLCommandHandler::ActivateSource(bool bTransmitDelayedCommandsOnly /* = false */)
369{

Callers

nothing calls this directly

Calls 1

PushBackMethod · 0.45

Tested by

no test coverage detected