make style

This commit is contained in:
Philippe Teuwen 2017-04-01 00:46:12 +02:00
parent 3ec9ecf800
commit 024fca9cb7
3 changed files with 48 additions and 52 deletions

View file

@ -602,17 +602,14 @@ main(int argc, const char *argv[])
uiBlocks = 0x14; uiBlocks = 0x14;
iEV1Type = EV1_UL11; iEV1Type = EV1_UL11;
iDumpSize = sizeof(mifareul_ev1_mf0ul11_tag); iDumpSize = sizeof(mifareul_ev1_mf0ul11_tag);
} } else if (abtRx[6] == 0x0e) {
else if(abtRx[6] == 0x0e) {
printf("128 bytes\n"); printf("128 bytes\n");
uiBlocks = 0x29; uiBlocks = 0x29;
iEV1Type = EV1_UL21; iEV1Type = EV1_UL21;
iDumpSize = sizeof(mifareul_ev1_mf0ul21_tag); iDumpSize = sizeof(mifareul_ev1_mf0ul21_tag);
} } else
else
printf("unknown!\n"); printf("unknown!\n");
} } else {
else {
// re-init non EV1 tag // re-init non EV1 tag
if (nfc_initiator_select_passive_target(pnd, nmMifare, (szUID) ? iUID : NULL, szUID, &nt) <= 0) { if (nfc_initiator_select_passive_target(pnd, nmMifare, (szUID) ? iUID : NULL, szUID, &nt) <= 0) {
ERR("no tag was found\n"); ERR("no tag was found\n");
@ -629,8 +626,7 @@ main(int argc, const char *argv[])
printf("\n"); printf("\n");
ERR("AUTH failed!\n"); ERR("AUTH failed!\n");
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} } else {
else {
printf("Success - PACK: %02x%02x\n", abtRx[0], abtRx[1]); printf("Success - PACK: %02x%02x\n", abtRx[0], abtRx[1]);
memcpy(iPACK, abtRx, 2); memcpy(iPACK, abtRx, 2);
} }