From 585ce7556c8aeb8d592085633d51fed70fb233df Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Mon, 18 Nov 2019 18:48:21 +0100 Subject: [PATCH] add empty command to enable client side to break loops on device side, like sim --- armsrc/appmain.c | 2 ++ include/pm3_cmd.h | 3 +++ 2 files changed, 5 insertions(+) diff --git a/armsrc/appmain.c b/armsrc/appmain.c index ef96d9fef..ef4dc6a6c 100644 --- a/armsrc/appmain.c +++ b/armsrc/appmain.c @@ -696,6 +696,8 @@ static void PacketReceived(PacketCommandNG *packet) { */ switch (packet->cmd) { + case CMD_BREAK_LOOP: + break; case CMD_QUIT_SESSION: { reply_via_fpc = false; reply_via_usb = false; diff --git a/include/pm3_cmd.h b/include/pm3_cmd.h index 0f7212600..892ec533f 100644 --- a/include/pm3_cmd.h +++ b/include/pm3_cmd.h @@ -288,6 +288,7 @@ typedef struct { #define CMD_STANDALONE 0x0115 #define CMD_WTX 0x0116 #define CMD_TIA 0x0117 +#define CMD_BREAK_LOOP 0x0118 // RDV40, Flash memory operations #define CMD_FLASHMEM_WRITE 0x0121 @@ -550,6 +551,8 @@ typedef struct { // Error codes Usages: +// Success, transfer nonces pm3: Sending nonces back to client +#define PM3_SNONCES 1 // Success (no error) #define PM3_SUCCESS 0