repositories
/
deb_libcec.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e1cfa5
)
cec: don't block when clearing input and no data is received
author
Lars Op den Kamp
<lars@opdenkamp.eu>
Sun, 4 Dec 2011 19:02:06 +0000
(20:02 +0100)
committer
Lars Op den Kamp
<lars@opdenkamp.eu>
Sun, 4 Dec 2011 19:02:06 +0000
(20:02 +0100)
src/lib/AdapterCommunication.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/lib/AdapterCommunication.cpp
b/src/lib/AdapterCommunication.cpp
index 6cc482f238c55d437dc95dc9398cd34f5d72dd32..df803f5c2f47f420b980bcab2ac026ee555d5e8c 100644
(file)
--- a/
src/lib/AdapterCommunication.cpp
+++ b/
src/lib/AdapterCommunication.cpp
@@
-289,8
+289,8
@@
bool CAdapterCommunication::Open(const char *strPort, uint16_t iBaudRate /* = 38
m_processor->AddLog(CEC_LOG_DEBUG, "connection opened");
//clear any input bytes
- uint8_t buff[1
024
];
- while (m_port->Read(buff,
sizeof(buff), 1000) > 0
) {}
+ uint8_t buff[1];
+ while (m_port->Read(buff,
1, 5) == 1
) {}
if (CreateThread())
{