From 3c30c490d4ebd0137f8deeeeb30ba260a53d5013 Mon Sep 17 00:00:00 2001 From: Lars Op den Kamp Date: Thu, 8 Mar 2012 15:12:30 +0100 Subject: [PATCH] cec: call SetControlledMode(false) as last command when closing the connection in v2. bugzid: 542 --- src/lib/adapter/USBCECAdapterCommunication.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/adapter/USBCECAdapterCommunication.cpp b/src/lib/adapter/USBCECAdapterCommunication.cpp index cd41a8a..f56bdf4 100644 --- a/src/lib/adapter/USBCECAdapterCommunication.cpp +++ b/src/lib/adapter/USBCECAdapterCommunication.cpp @@ -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; -- 2.34.1