mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-07-06 21:21:17 -07:00
fix compiler warning in cmdhflegic.c (and whitespace fixes) (#826)
This commit is contained in:
parent
a39af1cb9c
commit
2378bb24c3
1 changed files with 286 additions and 284 deletions
|
@ -218,8 +218,10 @@ int CmdLegicRFRead(const char *Cmd)
|
||||||
UsbCommand resp;
|
UsbCommand resp;
|
||||||
WaitForResponse(CMD_ACK,&resp);
|
WaitForResponse(CMD_ACK,&resp);
|
||||||
switch (resp.arg[0]) {
|
switch (resp.arg[0]) {
|
||||||
|
legic_card_select_t card;
|
||||||
case 0:
|
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);
|
PrintAndLog("'data hexsamples %d' to view results", (resp.arg[1] + 7) & ~7);
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue