fixed: CUSBCECAdapterCommunication::SetControlledMode checked for the wrong sent...
authorBob van Loosen <bob.loosen@gmail.com>
Tue, 6 Mar 2012 16:00:39 +0000 (17:00 +0100)
committerBob van Loosen <bob.loosen@gmail.com>
Tue, 6 Mar 2012 16:00:39 +0000 (17:00 +0100)
src/lib/adapter/USBCECAdapterCommunication.cpp

index e51a861f28579ebe6d5685c883032626e05add52..cd41a8a3e50f36724753b8f268ff33b86b3f6f7b 100644 (file)
@@ -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)
   {