mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 10:37:23 -07:00
make style
This commit is contained in:
parent
cc7054fc9b
commit
9880df8ca7
6 changed files with 9 additions and 9 deletions
|
@ -2522,13 +2522,13 @@ int iso14443a_select_cardEx(uint8_t *uid_ptr, iso14a_card_select_t *p_card, uint
|
|||
}
|
||||
|
||||
// 11RF005SH or 11RF005M, Read UID again
|
||||
if (p_card && p_card->atqa[1] == 0x00 ) {
|
||||
if (p_card && p_card->atqa[1] == 0x00) {
|
||||
|
||||
if ((p_card->atqa[0]==0x03) || (p_card->atqa[0]==0x05)) {
|
||||
if ((p_card->atqa[0] == 0x03) || (p_card->atqa[0] == 0x05)) {
|
||||
|
||||
// Read real UID
|
||||
// Read real UID
|
||||
uint8_t fudan_read[] = { 0x30, 0x01, 0x8B, 0xB9};
|
||||
ReaderTransmit(fudan_read, sizeof(fudan_read), NULL);
|
||||
ReaderTransmit(fudan_read, sizeof(fudan_read), NULL);
|
||||
ReaderReceive(resp, resp_par);
|
||||
|
||||
memcpy(p_card->uid, resp, 4);
|
||||
|
|
|
@ -2302,7 +2302,7 @@ void CopyHIDtoT55x7(uint32_t hi2, uint32_t hi, uint32_t lo, uint8_t longFMT, boo
|
|||
data[0] = (EM4x05_SET_BITRATE(50) | EM4x05_MODULATION_FSK2 | EM4x05_SET_NUM_BLOCKS(last_block));
|
||||
// EM4x05_INVERT not available on EM4305, so let's invert manually
|
||||
for (uint8_t i = 1; i <= last_block ; i++) {
|
||||
data[i] = data[i] ^ 0xFFFFFFFF;
|
||||
data[i] = data[i] ^ 0xFFFFFFFF;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -396,7 +396,7 @@ static int CmdAWIDClone(const char *Cmd) {
|
|||
if (em) {
|
||||
// invert FSK data
|
||||
for (uint8_t i = 1; i < ARRAYLEN(blocks) ; i++) {
|
||||
blocks[i] = blocks[i] ^ 0xFFFFFFFF;
|
||||
blocks[i] = blocks[i] ^ 0xFFFFFFFF;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -330,7 +330,7 @@ static int CmdIOProxClone(const char *Cmd) {
|
|||
if (em) {
|
||||
// invert FSK data
|
||||
for (uint8_t i = 1; i < ARRAYLEN(blocks); i++) {
|
||||
blocks[i] = blocks[i] ^ 0xFFFFFFFF;
|
||||
blocks[i] = blocks[i] ^ 0xFFFFFFFF;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -279,7 +279,7 @@ static int CmdParadoxClone(const char *Cmd) {
|
|||
blocks[0] = EM4305_PARADOX_CONFIG_BLOCK;
|
||||
// invert FSK data
|
||||
for (uint8_t i = 1; i < ARRAYLEN(blocks); i++) {
|
||||
blocks[i] = blocks[i] ^ 0xFFFFFFFF;
|
||||
blocks[i] = blocks[i] ^ 0xFFFFFFFF;
|
||||
}
|
||||
snprintf(cardtype, sizeof(cardtype), "EM4305/4469");
|
||||
}
|
||||
|
|
|
@ -331,7 +331,7 @@ static int CmdPyramidClone(const char *Cmd) {
|
|||
blocks[0] = EM4305_PYRAMID_CONFIG_BLOCK;
|
||||
// invert FSK data
|
||||
for (uint8_t i = 1; i < ARRAYLEN(blocks) ; i++) {
|
||||
blocks[i] = blocks[i] ^ 0xFFFFFFFF;
|
||||
blocks[i] = blocks[i] ^ 0xFFFFFFFF;
|
||||
}
|
||||
snprintf(cardtype, sizeof(cardtype), "EM4305/4469");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue