repositories
/
deb_libcec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cec: added -sf and --short-log-file, which only log the actual messages, not the...
[deb_libcec.git]
/
src
/
lib
/
AdapterCommunication.cpp
diff --git
a/src/lib/AdapterCommunication.cpp
b/src/lib/AdapterCommunication.cpp
index 7749911dcff667e7a2db9920a8545bdec7cda433..f880d982e80175a7ab54590116528b2eca81bfce 100644
(file)
--- a/
src/lib/AdapterCommunication.cpp
+++ b/
src/lib/AdapterCommunication.cpp
@@
-91,8
+91,6
@@
bool CAdapterCommunication::Open(const char *strPort, uint16_t iBaudRate /* = 38
uint8_t buff[1024];
m_port->Read(buff, sizeof(buff), 50);
uint8_t buff[1024];
m_port->Read(buff, sizeof(buff), 50);
- Sleep(CEC_SETTLE_DOWN_TIME);
-
if (CreateThread())
{
m_controller->AddLog(CEC_LOG_DEBUG, "communication thread created");
if (CreateThread())
{
m_controller->AddLog(CEC_LOG_DEBUG, "communication thread created");
@@
-406,7
+404,7
@@
void CAdapterCommunication::FormatAdapterMessage(const cec_command &command, cec
// add opcode
packet.push_back(MSGSTART);
// add opcode
packet.push_back(MSGSTART);
- PushEscaped(packet, command.parameters.empty() ?
MSGCODE_TRANSMIT_EOM :
MSGCODE_TRANSMIT);
+ PushEscaped(packet, command.parameters.empty() ?
(uint8_t)MSGCODE_TRANSMIT_EOM : (uint8_t)
MSGCODE_TRANSMIT);
packet.push_back((uint8_t) command.opcode);
packet.push_back(MSGEND);
packet.push_back((uint8_t) command.opcode);
packet.push_back(MSGEND);