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

Method HandleReportPowerStatus

src/libcec/implementations/VLCommandHandler.cpp:301–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

299}
300
301int CVLCommandHandler::HandleReportPowerStatus(const cec_command &command)
302{
303 if (command.initiator == m_busDevice->GetLogicalAddress() &&
304 command.parameters.size == 1 &&
305 (cec_power_status)command.parameters[0] == CEC_POWER_STATUS_ON)
306 {
307 CLockObject lock(m_mutex);
308 if (m_iPowerUpEventReceived == 0)
309 m_iPowerUpEventReceived = GetTimeMs();
310 }
311
312 return CCECCommandHandler::HandleReportPowerStatus(command);
313}

Callers

nothing calls this directly

Calls 1

GetLogicalAddressMethod · 0.45

Tested by

no test coverage detected