cec: call SetControlledMode(false) as last command when closing the connection in...
authorLars Op den Kamp <lars@opdenkamp.eu>
Thu, 8 Mar 2012 14:12:30 +0000 (15:12 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Thu, 8 Mar 2012 14:12:30 +0000 (15:12 +0100)
src/lib/adapter/USBCECAdapterCommunication.cpp

index cd41a8a3e50f36724753b8f268ff33b86b3f6f7b..f56bdf4b1f029a233cce849e74df727ba905918f 100644 (file)
@@ -252,6 +252,9 @@ void *CUSBCECAdapterCommunication::Process(void)
   /* set the ackmask to 0 before closing the connection */
   SetAckMaskInternal(0, true);
 
+  if (m_iFirmwareVersion >= 2)
+    SetControlledMode(false);
+
   if (m_port)
   {
     delete m_port;