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

Method PowerOn

src/libcec/implementations/ANCommandHandler.cpp:85–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85bool CANCommandHandler::PowerOn(const cec_logical_address iInitiator, const cec_logical_address iDestination)
86{
87 if (iDestination == CECDEVICE_AUDIOSYSTEM)
88 {
89 /* Samsung AVR devices need to be woken up with key CEC_USER_CONTROL_CODE_POWER_ON_FUNCTION */
90 return TransmitKeypress(iInitiator, iDestination, CEC_USER_CONTROL_CODE_POWER_ON_FUNCTION) &&
91 TransmitKeyRelease(iInitiator, iDestination);
92 }
93
94 return CCECCommandHandler::PowerOn(iInitiator, iDestination);
95}
96
97int CANCommandHandler::HandleDeviceVendorCommandWithId(const cec_command &command)
98{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected