cec: fixed error message in cec-client (unable to open the device on port ...)
[deb_libcec.git] / src / lib / CECProcessor.cpp
index 659eae3ecf88376ef158bd01ef28ec13b89ce25d..0c409eb6eee23073393373c1ce27d424946d4647 100644 (file)
@@ -860,7 +860,7 @@ bool CCECProcessor::Transmit(const cec_command &data)
   bReturn = Transmit(output);
 
   /* set to "not present" on failed ack */
-  if (output->IsError() && output->reply == MSGCODE_TRANSMIT_FAILED_ACK &&
+  if (output->state == ADAPTER_MESSAGE_STATE_SENT_NOT_ACKED &&
       output->Destination() != CECDEVICE_BROADCAST)
     m_busDevices[output->Destination()]->SetDeviceStatus(CEC_DEVICE_STATUS_NOT_PRESENT);