repositories
/
deb_libcec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'ghuron/patch-1'. corrected CEC_OPCODE_DEVICE_VENDOR_ID. closes #5
[deb_libcec.git]
/
src
/
lib
/
AdapterCommunication.cpp
diff --git
a/src/lib/AdapterCommunication.cpp
b/src/lib/AdapterCommunication.cpp
index 9b4490b7316dbf4d386bc2ac0ce3b51e0054f3b9..e772d351cbd265fdf6a1a9d4b764edebd0f28e5e 100644
(file)
--- a/
src/lib/AdapterCommunication.cpp
+++ b/
src/lib/AdapterCommunication.cpp
@@
-64,7
+64,7
@@
CCECAdapterMessage::CCECAdapterMessage(const cec_command &command)
if (command.opcode_set == 1)
{
push_back(MSGSTART);
if (command.opcode_set == 1)
{
push_back(MSGSTART);
- push_escaped(command.parameters.
e
mpty() ? (uint8_t)MSGCODE_TRANSMIT_EOM : (uint8_t)MSGCODE_TRANSMIT);
+ push_escaped(command.parameters.
IsE
mpty() ? (uint8_t)MSGCODE_TRANSMIT_EOM : (uint8_t)MSGCODE_TRANSMIT);
push_back((uint8_t) command.opcode);
push_back(MSGEND);
push_back((uint8_t) command.opcode);
push_back(MSGEND);
@@
-227,15
+227,15
@@
bool CCECAdapterMessage::is_error(void) const
code == MSGCODE_TRANSMIT_FAILED_TIMEOUT_LINE);
}
code == MSGCODE_TRANSMIT_FAILED_TIMEOUT_LINE);
}
-void CCECAdapterMessage::push_escaped(
int16
_t byte)
+void CCECAdapterMessage::push_escaped(
uint8
_t byte)
{
if (byte >= MSGESC && byte != MSGSTART)
{
push_back(MSGESC);
{
if (byte >= MSGESC && byte != MSGSTART)
{
push_back(MSGESC);
- push_back(
(uint8_t) (byte - ESCOFFSET)
);
+ push_back(
byte - ESCOFFSET
);
}
else
}
else
- push_back(
(uint8_t)
byte);
+ push_back(byte);
}
CAdapterCommunication::CAdapterCommunication(CLibCEC *controller) :
}
CAdapterCommunication::CAdapterCommunication(CLibCEC *controller) :