From ccc06150bab84548cabca63a060fedef8e548c08 Mon Sep 17 00:00:00 2001 From: Bob van Loosen Date: Tue, 6 Mar 2012 17:00:39 +0100 Subject: [PATCH] fixed: CUSBCECAdapterCommunication::SetControlledMode checked for the wrong sent state --- src/lib/adapter/USBCECAdapterCommunication.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/adapter/USBCECAdapterCommunication.cpp b/src/lib/adapter/USBCECAdapterCommunication.cpp index e51a861..cd41a8a 100644 --- a/src/lib/adapter/USBCECAdapterCommunication.cpp +++ b/src/lib/adapter/USBCECAdapterCommunication.cpp @@ -571,7 +571,7 @@ bool CUSBCECAdapterCommunication::SetControlledMode(bool controlled) output->isTransmission = false; SendMessageToAdapter(output); - bool bWriteOk = output->state == ADAPTER_MESSAGE_STATE_SENT; + bool bWriteOk = output->state == ADAPTER_MESSAGE_STATE_SENT_ACKED; delete output; if (!bWriteOk) { -- 2.34.1