fix compiler warning in cmdhflegic.c (and whitespace fixes)

This commit is contained in:
pwpiwi 2019-05-24 08:31:02 +02:00
commit 3bd2c425b7

View file

@ -218,8 +218,10 @@ int CmdLegicRFRead(const char *Cmd)
UsbCommand resp;
WaitForResponse(CMD_ACK,&resp);
switch (resp.arg[0]) {
legic_card_select_t card;
case 0:
PrintAndLog("Card (MIM %i) read, use 'hf legic decode' or", ((legic_card_select_t*)resp.d.asBytes)->cardsize);
memcpy(&card, resp.d.asBytes, sizeof(card));
PrintAndLog("Card (MIM %i) read, use 'hf legic decode' or", card.cardsize);
PrintAndLog("'data hexsamples %d' to view results", (resp.arg[1] + 7) & ~7);
break;
case 1: