Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

alway log unhandled commands

  • Loading branch information...
commit 3ff78be261e2a30b6cb23847f4148c1344cef8df 1 parent 58691fb
@opdenkamp opdenkamp authored
View
3  src/lib/implementations/CECCommandHandler.cpp
@@ -756,6 +756,9 @@ void CCECCommandHandler::UnhandledCommand(const cec_command &command, const cec_
{
LIB_CEC->AddLog(CEC_LOG_DEBUG, "sending abort with opcode %02x and reason '%s' to %s", command.opcode, ToString(reason), ToString(command.initiator));
m_processor->TransmitAbort(command.destination, command.initiator, command.opcode, reason);
+
+ if (reason == CEC_ABORT_REASON_INVALID_OPERAND)
+ RequestEmailFromCustomer(command);
}
}
View
4 src/lib/implementations/RLCommandHandler.cpp
@@ -108,6 +108,7 @@ int CRLCommandHandler::HandleDeviceVendorCommandWithId(const cec_command &comman
case CEC_OPCODE_USER_CONTROL_PRESSED:
if (command.parameters.size == 5)
{
+ bHandled = true;
switch (command.parameters[4])
{
// top menu -> root menu
@@ -119,10 +120,9 @@ int CRLCommandHandler::HandleDeviceVendorCommandWithId(const cec_command &comman
client->SetCurrentButton(CEC_USER_CONTROL_CODE_CONTENTS_MENU);
break;
default:
- RequestEmailFromCustomer(command);
+ bHandled = false;
break;
}
- bHandled = true;
}
break;
// user control released
Please sign in to comment.
Something went wrong with that request. Please try again.