From 9b4896225c1b28a5144415323568ede30348dbec Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Fri, 19 Apr 2019 01:14:33 +0200 Subject: [PATCH] SendCommandOLD for hf_young --- armsrc/Standalone/hf_young.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/armsrc/Standalone/hf_young.c b/armsrc/Standalone/hf_young.c index 324f9cf8e..c931417be 100644 --- a/armsrc/Standalone/hf_young.c +++ b/armsrc/Standalone/hf_young.c @@ -132,9 +132,7 @@ void RunMod() { SpinDelay(500); // Begin clone function here: /* Example from client/mifarehost.c for commanding a block write for "magic Chinese" cards: - PacketCommandOLD c = {CMD_MIFARE_CSETBLOCK, {params & (0xFE | (uid == NULL ? 0:1)), blockNo, 0}}; - memcpy(c.d.asBytes, data, 16); - SendCommand(&c); + SendCommandOLD(CMD_MIFARE_CSETBLOCK, params & (0xFE | (uid == NULL ? 0:1)), blockNo, 0, data, 16); Block read is similar: PacketCommandOLD c = {CMD_MIFARE_CGETBLOCK, {params, blockNo, 0}};