+bool CCECProcessor::SwitchMonitoring(bool bEnable)
+{
+ CStdString strLog;
+ strLog.Format("== %s monitoring mode ==", bEnable ? "enabling" : "disabling");
+ m_controller->AddLog(CEC_LOG_NOTICE, strLog.c_str());
+
+ m_bMonitor = bEnable;
+ if (bEnable)
+ return m_communication && m_communication->SetAckMask(0);
+ else
+ return m_communication && m_communication->SetAckMask(0x1 << (uint8_t)m_iLogicalAddress);
+}
+