cec: set the ackmask to 0 when starting, so the earlier mask is cleared when starting...
authorLars Op den Kamp <lars@opdenkamp.eu>
Mon, 14 May 2012 13:26:34 +0000 (15:26 +0200)
committerLars Op den Kamp <lars@opdenkamp.eu>
Mon, 14 May 2012 13:26:34 +0000 (15:26 +0200)
src/lib/CECProcessor.cpp

index df04a237edba78ba755928757ed72c6f0590a1bb..3bfa061548c0e4b74d4811e7296790a6849b2630 100644 (file)
@@ -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);