repositories
/
deb_libcec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cec: fix GetTimeMs() on linux. add time in ms since startup to log messages
[deb_libcec.git]
/
src
/
lib
/
AdapterCommunication.cpp
diff --git
a/src/lib/AdapterCommunication.cpp
b/src/lib/AdapterCommunication.cpp
index 627ce27a476ecfab70cc2186aafc0a6be61533ec..8ddeaa61b3ff90863a63cd4cb26bba3240b13d5b 100644
(file)
--- a/
src/lib/AdapterCommunication.cpp
+++ b/
src/lib/AdapterCommunication.cpp
@@
-132,7
+132,7
@@
void *CAdapterCommunication::Process(void)
{
CLockObject lock(&m_mutex, true);
if (lock.IsLocked())
{
CLockObject lock(&m_mutex, true);
if (lock.IsLocked())
- bSignal = ReadFromDevice(
10
0);
+ bSignal = ReadFromDevice(
5
0);
}
if (bSignal)
}
if (bSignal)
@@
-193,7
+193,7
@@
bool CAdapterCommunication::Write(const cec_frame &data)
m_controller->AddLog(CEC_LOG_DEBUG, "command sent");
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 /* to be on the safe side */
);
+ CCondition::Sleep((uint32_t) data.size * (uint32_t)24 /*data*/ + (uint32_t)5 /*start bit (4.5 ms)*/);
}
return true;
}
return true;