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

Method CANCommandHandler

src/libcec/implementations/ANCommandHandler.cpp:47–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45#define ToString(p) LIB_CEC->ToString(p)
46
47CANCommandHandler::CANCommandHandler(CCECBusDevice *busDevice,
48 int32_t iTransmitTimeout /* = CEC_DEFAULT_TRANSMIT_TIMEOUT */,
49 int32_t iTransmitWait /* = CEC_DEFAULT_TRANSMIT_WAIT */,
50 int8_t iTransmitRetries /* = CEC_DEFAULT_TRANSMIT_RETRIES */,
51 int64_t iActiveSourcePending /* = 0 */) :
52 CCECCommandHandler(busDevice, iTransmitTimeout, iTransmitWait, iTransmitRetries, iActiveSourcePending)
53{
54 m_vendorId = CEC_VENDOR_SAMSUNG;
55 m_bOPTSendDeckStatusUpdateOnActiveSource = false;
56 if (busDevice->GetLogicalAddress() == CECDEVICE_TV)
57 {
58 // disable auto mode, as this may wake up the TV randomly (samsung 2017+ bug)
59 m_busDevice->GetProcessor()->SetAutoMode(false);
60 }
61}
62
63int CANCommandHandler::HandleVendorRemoteButtonDown(const cec_command &command)
64{

Callers

nothing calls this directly

Calls 3

GetProcessorMethod · 0.80
GetLogicalAddressMethod · 0.45
SetAutoModeMethod · 0.45

Tested by

no test coverage detected