alway log unhandled commands
[deb_libcec.git] / src / lib / implementations / CECCommandHandler.cpp
index 1343a0cb50e521e84ad7931df0988a93985b1ee6..1c1b1ff08c3b975e5a7607fc5afe34c9d2fb0039 100644 (file)
@@ -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);
   }
 }