mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-10 10:11:58 +08:00
SendCommandOLD for hf_young
This commit is contained in:
parent
a6f52e839f
commit
9b4896225c
1 changed files with 1 additions and 3 deletions
|
@ -132,9 +132,7 @@ void RunMod() {
|
||||||
SpinDelay(500);
|
SpinDelay(500);
|
||||||
// Begin clone function here:
|
// Begin clone function here:
|
||||||
/* Example from client/mifarehost.c for commanding a block write for "magic Chinese" cards:
|
/* 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}};
|
SendCommandOLD(CMD_MIFARE_CSETBLOCK, params & (0xFE | (uid == NULL ? 0:1)), blockNo, 0, data, 16);
|
||||||
memcpy(c.d.asBytes, data, 16);
|
|
||||||
SendCommand(&c);
|
|
||||||
|
|
||||||
Block read is similar:
|
Block read is similar:
|
||||||
PacketCommandOLD c = {CMD_MIFARE_CGETBLOCK, {params, blockNo, 0}};
|
PacketCommandOLD c = {CMD_MIFARE_CGETBLOCK, {params, blockNo, 0}};
|
||||||
|
|
Loading…
Reference in a new issue