From 8d18860c6ad6f9419cfd63e4f68148f9a62a75ca Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Fri, 26 Mar 2021 21:30:25 +0100 Subject: [PATCH] fix cppchecker --- armsrc/Standalone/hf_mattyrun.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/armsrc/Standalone/hf_mattyrun.c b/armsrc/Standalone/hf_mattyrun.c index e14e89789..8d03c911d 100644 --- a/armsrc/Standalone/hf_mattyrun.c +++ b/armsrc/Standalone/hf_mattyrun.c @@ -55,9 +55,9 @@ static iso14a_card_select_t p_card; // Pseudo-configuration block. static bool printKeys = false; // Prints keys -static bool transferToEml = true; // Transfer keys to emulator memory +//static bool transferToEml = true; // Transfer keys to emulator memory static bool ecfill = true; // Fill emulator memory with cards content. -static bool simulation = true; // Simulates an exact copy of the target tag +//static bool simulation = true; // Simulates an exact copy of the target tag static bool fillFromEmulator = false; // Dump emulator memory. //----------------------------------------------------------------------------- @@ -482,7 +482,8 @@ void RunMod(void) { // If enabled, transfers found keys to memory and loads target content in emulator memory. Then it simulates to be the tag it has basically cloned. - if ((transferToEml) && (allKeysFound)) { +// if ((transferToEml) && (allKeysFound)) { + if (allKeysFound) { emlClearMem(); @@ -517,7 +518,8 @@ void RunMod(void) { } } - if ((filled == PM3_SUCCESS) && simulation) { +// if ((filled == PM3_SUCCESS) && simulation) { + if (filled == PM3_SUCCESS) { Dbprintf("\t [✓] Emulator memory filled, simulation started."); // This will tell the fpga to emulate using previous keys and current target tag content.