| 45 | #define ToString(p) LIB_CEC->ToString(p) |
| 46 | |
| 47 | CANCommandHandler::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 | |
| 63 | int CANCommandHandler::HandleVendorRemoteButtonDown(const cec_command &command) |
| 64 | { |
nothing calls this directly
no test coverage detected