cec: fix timeout
[deb_libcec.git] / src / lib / AdapterCommunication.cpp
index cc83320aae0084e55b7499b360a3e5883f8225e2..a281ecde17d1c0c49de4642320591ed64076cd46 100644 (file)
@@ -188,6 +188,7 @@ bool CAdapterCommunication::Write(const cec_frame &data)
     }
 
     m_controller->AddLog(CEC_LOG_DEBUG, "command sent");
+    CCondition::Sleep((uint32_t) data.size * (uint32_t)24 /*data*/ + (uint32_t)5 /*start bit (4.5 ms)*/ + (uint32_t)50);
   }
 
   return true;