cec: split up WaitForAck() and ParseMessage(). currently has a bit of dupe logging...
[deb_libcec.git] / src / lib / AdapterCommunication.cpp
index 2ee72707773d9db64ad1fd0d53634ff16a26921d..6b0e262b1ac9222293cc567d65cc151ae5c4570e 100644 (file)
@@ -89,9 +89,7 @@ bool CAdapterCommunication::Open(const char *strPort, uint16_t iBaudRate /* = 38
 
   //clear any input bytes
   uint8_t buff[1024];
-  m_port->Read(buff, sizeof(buff), 50);
-
-  Sleep(CEC_SETTLE_DOWN_TIME);
+  m_port->Read(buff, sizeof(buff), 500);
 
   if (CreateThread())
   {