From: Bob van Loosen Date: Tue, 6 Mar 2012 16:00:39 +0000 (+0100) Subject: fixed: CUSBCECAdapterCommunication::SetControlledMode checked for the wrong sent... X-Git-Tag: upstream/2.2.0~1^2~31^2~99 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=ccc06150bab84548cabca63a060fedef8e548c08;p=deb_libcec.git fixed: CUSBCECAdapterCommunication::SetControlledMode checked for the wrong sent state --- 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) {