mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-21 23:45:49 +08:00
Add host logging of all remote commands.
This commit is contained in:
@@ -17,6 +17,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "RemoteControl.h"
|
#include "RemoteControl.h"
|
||||||
|
#include "Log.h"
|
||||||
|
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
@@ -62,6 +63,11 @@ REMOTE_COMMAND CRemoteControl::getCommand()
|
|||||||
command = RC_MODE_P25;
|
command = RC_MODE_P25;
|
||||||
else if (::memcmp(buffer, "mode nxdn", 9U) == 0)
|
else if (::memcmp(buffer, "mode nxdn", 9U) == 0)
|
||||||
command = RC_MODE_NXDN;
|
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;
|
return command;
|
||||||
|
|||||||
Reference in New Issue
Block a user