mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
redundant
This commit is contained in:
parent
61610a5c61
commit
8f188a5329
3 changed files with 3 additions and 3 deletions
|
@ -1645,7 +1645,7 @@ void check_challenges(bool file_given, uint8_t *data) {
|
||||||
size_t rxlen = 0;
|
size_t rxlen = 0;
|
||||||
uint8_t txbuf[HITAG_FRAME_LEN];
|
uint8_t txbuf[HITAG_FRAME_LEN];
|
||||||
int t_wait = HITAG_T_WAIT_MAX;
|
int t_wait = HITAG_T_WAIT_MAX;
|
||||||
int lastbit, STATE = 0;;
|
int lastbit, STATE = 0;
|
||||||
bool bStop;
|
bool bStop;
|
||||||
int response_bit[200];
|
int response_bit[200];
|
||||||
unsigned char mask = 1;
|
unsigned char mask = 1;
|
||||||
|
|
|
@ -436,7 +436,7 @@ void LegicRfInfo(void) {
|
||||||
|
|
||||||
// read MCC and check against UID
|
// read MCC and check against UID
|
||||||
int16_t mcc = read_byte(4, card.cmdsize);
|
int16_t mcc = read_byte(4, card.cmdsize);
|
||||||
int16_t calc_mcc = CRC8Legic(card.uid, 4);;
|
int16_t calc_mcc = CRC8Legic(card.uid, 4);
|
||||||
if (mcc != calc_mcc) {
|
if (mcc != calc_mcc) {
|
||||||
reply_mix(CMD_ACK, 0, 0, 0, 0, 0);
|
reply_mix(CMD_ACK, 0, 0, 0, 0, 0);
|
||||||
goto OUT;
|
goto OUT;
|
||||||
|
|
|
@ -1840,7 +1840,7 @@ void MifarePersonalizeUID(uint8_t keyType, uint8_t perso_option, uint64_t key) {
|
||||||
int len = mifare_sendcmd_short(pcs, true, MIFARE_EV1_PERSONAL_UID, perso_option, receivedAnswer, receivedAnswerPar, NULL);
|
int len = mifare_sendcmd_short(pcs, true, MIFARE_EV1_PERSONAL_UID, perso_option, receivedAnswer, receivedAnswerPar, NULL);
|
||||||
if (len != 1 || receivedAnswer[0] != CARD_ACK) {
|
if (len != 1 || receivedAnswer[0] != CARD_ACK) {
|
||||||
if (DBGLEVEL >= DBG_ERROR) Dbprintf("Cmd Error: %02x", receivedAnswer[0]);
|
if (DBGLEVEL >= DBG_ERROR) Dbprintf("Cmd Error: %02x", receivedAnswer[0]);
|
||||||
break;;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mifare_classic_halt(pcs, cuid)) {
|
if (mifare_classic_halt(pcs, cuid)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue