mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-13 01:57:25 -07:00
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:
parent
d7da384f69
commit
28eec73445
5 changed files with 68 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue