added a client preference for delay of execution. This a global delay before each command is parsed. You can unset it with by setting delay to ZERO. The purpose of this setting is for users who want to use the pm3 against a implanted implant where you have to get a good position and arrange the pm3 while pressing <enter>.

This commit is contained in:
iceman1001 2021-07-14 09:57:16 +02:00
commit 28eec73445
5 changed files with 68 additions and 2 deletions

View file

@ -15,6 +15,7 @@
#include "ui.h"
#include "comms.h"
#include "util_posix.h" // msleep
bool AlwaysAvailable(void) {
return true;
@ -193,6 +194,11 @@ void CmdsHelp(const command_t Commands[]) {
}
int CmdsParse(const command_t Commands[], const char *Cmd) {
if (session.client_exe_delay != 0) {
msleep(session.client_exe_delay);
}
// Help dump children
if (strcmp(Cmd, "XX_internal_command_dump_XX") == 0) {
dumpCommandsRecursive(Commands, 0, false);