mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-10 18:24:27 +08:00
style
This commit is contained in:
parent
acb6fcb970
commit
9e9d8ddbde
1 changed files with 4 additions and 4 deletions
|
@ -214,7 +214,7 @@ int MADCheck(uint8_t *sector0, uint8_t *sector10, bool verbose, bool *haveMAD2)
|
||||||
int res = madCRCCheck(sector0, true, 1);
|
int res = madCRCCheck(sector0, true, 1);
|
||||||
|
|
||||||
if (verbose && res == PM3_SUCCESS)
|
if (verbose && res == PM3_SUCCESS)
|
||||||
PrintAndLogEx(SUCCESS, "%14s " _GREEN_("0x%02x") " (%s)", "CRC8", sector0[16], _GREEN_("ok"));
|
PrintAndLogEx(SUCCESS, "%14s " _GREEN_("0x%02x") " ( %s )", "CRC8", sector0[16], _GREEN_("ok"));
|
||||||
|
|
||||||
if (mad_ver == 2 && sector10) {
|
if (mad_ver == 2 && sector10) {
|
||||||
int res2 = madCRCCheck(sector10, true, 2);
|
int res2 = madCRCCheck(sector10, true, 2);
|
||||||
|
@ -222,7 +222,7 @@ int MADCheck(uint8_t *sector0, uint8_t *sector10, bool verbose, bool *haveMAD2)
|
||||||
res = res2;
|
res = res2;
|
||||||
|
|
||||||
if (verbose && !res2)
|
if (verbose && !res2)
|
||||||
PrintAndLogEx(SUCCESS, "%14s " _GREEN_("0x%02x") " (%s)", "CRC8", sector10[0], _GREEN_("ok"));
|
PrintAndLogEx(SUCCESS, "%14s " _GREEN_("0x%02x") " ( %s )", "CRC8", sector10[0], _GREEN_("ok"));
|
||||||
}
|
}
|
||||||
|
|
||||||
// MA (multi-application card)
|
// MA (multi-application card)
|
||||||
|
@ -354,9 +354,9 @@ int MAD2DecodeAndPrint(uint8_t *sector, bool swapmad, bool verbose) {
|
||||||
int res = madCRCCheck(sector, true, 2);
|
int res = madCRCCheck(sector, true, 2);
|
||||||
if (verbose) {
|
if (verbose) {
|
||||||
if (res == PM3_SUCCESS)
|
if (res == PM3_SUCCESS)
|
||||||
PrintAndLogEx(SUCCESS, "CRC8 (%s)", _GREEN_("ok"));
|
PrintAndLogEx(SUCCESS, "CRC8 ( %s )", _GREEN_("ok"));
|
||||||
else
|
else
|
||||||
PrintAndLogEx(WARNING, "CRC8 (%s)", _RED_("fail"));
|
PrintAndLogEx(WARNING, "CRC8 ( %s )", _RED_("fail"));
|
||||||
}
|
}
|
||||||
|
|
||||||
int ibs = MADInfoByteDecode(sector, swapmad, 2, verbose);
|
int ibs = MADInfoByteDecode(sector, swapmad, 2, verbose);
|
||||||
|
|
Loading…
Reference in a new issue