From 682b21deec9c67b205fd04319fa43cd753624244 Mon Sep 17 00:00:00 2001 From: Lars Op den Kamp Date: Mon, 13 Feb 2012 13:22:42 +0100 Subject: [PATCH] cec: added a couple of debug lines --- src/lib/implementations/SLCommandHandler.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/lib/implementations/SLCommandHandler.cpp b/src/lib/implementations/SLCommandHandler.cpp index dbf9d09..4d95fad 100644 --- a/src/lib/implementations/SLCommandHandler.cpp +++ b/src/lib/implementations/SLCommandHandler.cpp @@ -99,7 +99,10 @@ bool CSLCommandHandler::ActivateSource(void) } if (!m_bSLEnabled) + { + CLibCEC::AddLog(CEC_LOG_NOTICE, "not activating the source until SL has been initialised"); return true; + } if (m_bActiveSourceSent) return true; @@ -117,7 +120,10 @@ bool CSLCommandHandler::HandleActiveSource(const cec_command &command) { uint16_t iAddress = ((uint16_t)command.parameters[0] << 8) | ((uint16_t)command.parameters[1]); if (iAddress != m_busDevice->GetPhysicalAddress(false)) + { + CLibCEC::AddLog(CEC_LOG_NOTICE, "resetting SL initialised state"); m_bSLEnabled = false; + } return m_processor->SetActiveSource(iAddress); } @@ -332,6 +338,7 @@ bool CSLCommandHandler::HandleStandby(const cec_command &command) { if (command.initiator == CECDEVICE_TV) { + CLibCEC::AddLog(CEC_LOG_NOTICE, "resetting SL initialised state"); m_bSLEnabled = false; m_bPowerStateReset = false; m_bActiveSourceSent = false; -- 2.34.1