make style

This commit is contained in:
iceman1001 committed 2022-02-18 22:31:34 +01:00
1 parent 638e892088
commit 1f470483ec
4 files changed
+25 -10

No files matched your search

+5 -5
View File
@@ -6208,10 +6208,10 @@ static bool mfc_value(const uint8_t *d, uint32_t *val) {
uint32_t b = MemLeToUint4byte(d + 8);
int val_checks = (
(a == b) && (a == ~a_inv) &&
(d[12] == (~d[13] & 0xFF)) &&
(d[14] == (~d[15] & 0xFF))
);
(a == b) && (a == ~a_inv) &&
(d[12] == (~d[13] & 0xFF)) &&
(d[14] == (~d[15] & 0xFF))
);
if (val) {
*val = a;
@@ -6241,7 +6241,7 @@ static int CmdHF14AMfValue(const char *Cmd) {
uint32_t value = 0;
if (mfc_value(data, &value)) {
PrintAndLogEx(SUCCESS, "Dec... " _YELLOW_("%" PRIu32 ), value);
PrintAndLogEx(SUCCESS, "Dec... " _YELLOW_("%" PRIu32), value);
PrintAndLogEx(SUCCESS, "Hex... " _YELLOW_("0x%" PRIX32), value);
} else {
PrintAndLogEx(FAILED, "No value block detected");
+1
View File
@@ -305,6 +305,7 @@ const static vocabulory_t vocabulory[] = {
{ 0, "hf mf rdsc" },
{ 0, "hf mf restore" },
{ 0, "hf mf setmod" },
{ 1, "hf mf value" },
{ 1, "hf mf view" },
{ 0, "hf mf wipe" },
{ 0, "hf mf wrbl" },