Add host logging of all remote commands.

This commit is contained in:
Jonathan Naylor 2019-01-09 11:27:15 +00:00
parent 6f7c7e968e
commit c0658deafa

View file

@ -17,6 +17,7 @@
*/
#include "RemoteControl.h"
#include "Log.h"
#include <cstdio>
#include <cassert>
@ -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;