From: Lars Op den Kamp Date: Mon, 14 May 2012 13:26:34 +0000 (+0200) Subject: cec: set the ackmask to 0 when starting, so the earlier mask is cleared when starting... X-Git-Tag: upstream/2.2.0~1^2~28^2~11 X-Git-Url: https://git.piment-noir.org/?p=deb_libcec.git;a=commitdiff_plain;h=6f03b2ab591585fe6691e4ca86e067707f354b63 cec: set the ackmask to 0 when starting, so the earlier mask is cleared when starting a monitor-only client --- diff --git a/src/lib/CECProcessor.cpp b/src/lib/CECProcessor.cpp index df04a23..3bfa061 100644 --- a/src/lib/CECProcessor.cpp +++ b/src/lib/CECProcessor.cpp @@ -153,6 +153,9 @@ bool CCECProcessor::OpenConnection(const char *strPort, uint16_t iBaudRate, uint m_libcec->AddLog(CEC_LOG_NOTICE, "connection opened"); + // always start by setting the ackmask to 0, to clear previous values + SetAckMask(0); + // mark as initialised SetCECInitialised(true);