X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2FAdapterCommunication.cpp;h=74ea9e3f33826363d4ab34e6caf50ff99a0ae2d9;hb=2dbd78f8f765f83e98190c01a123c569aea7c5b6;hp=e772d351cbd265fdf6a1a9d4b764edebd0f28e5e;hpb=ab1469a0b71660e0d802c7fb0b370991cfca2fe1;p=deb_libcec.git diff --git a/src/lib/AdapterCommunication.cpp b/src/lib/AdapterCommunication.cpp index e772d35..74ea9e3 100644 --- a/src/lib/AdapterCommunication.cpp +++ b/src/lib/AdapterCommunication.cpp @@ -282,7 +282,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), 500); + while (m_port->Read(buff, sizeof(buff), 500) > 0) {} if (CreateThread()) {