From c0658deafa7e67aae7b21c4fc9aa2e47e4f30913 Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Wed, 9 Jan 2019 11:27:15 +0000 Subject: [PATCH] Add host logging of all remote commands. --- RemoteControl.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/RemoteControl.cpp b/RemoteControl.cpp index 62d009a..91eae38 100644 --- a/RemoteControl.cpp +++ b/RemoteControl.cpp @@ -17,6 +17,7 @@ */ #include "RemoteControl.h" +#include "Log.h" #include #include @@ -62,6 +63,11 @@ REMOTE_COMMAND CRemoteControl::getCommand() command = RC_MODE_P25; else if (::memcmp(buffer, "mode nxdn", 9U) == 0) command = RC_MODE_NXDN; + + if (command == RC_NONE) + LogMessage("Invalid remote command of \"%s\" received"); + else + LogMessage("Valid remote command of \"%s\" received"); } return command;