cec: wait a bit longer to clear previous input
authorLars Op den Kamp <lars@opdenkamp.eu>
Fri, 28 Oct 2011 22:00:54 +0000 (00:00 +0200)
committerLars Op den Kamp <lars@opdenkamp.eu>
Fri, 28 Oct 2011 22:00:54 +0000 (00:00 +0200)
src/lib/AdapterCommunication.cpp

index f880d982e80175a7ab54590116528b2eca81bfce..6b0e262b1ac9222293cc567d65cc151ae5c4570e 100644 (file)
@@ -89,7 +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);
+  m_port->Read(buff, sizeof(buff), 500);
 
   if (CreateThread())
   {