From 896a42dba1c52ec18add70e6a182e9bb79a77d70 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Tue, 30 Jun 2026 00:21:11 +0200 Subject: [PATCH] style --- client/src/cmdmad.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/client/src/cmdmad.c b/client/src/cmdmad.c index e25c603fd..cfeb9da81 100644 --- a/client/src/cmdmad.c +++ b/client/src/cmdmad.c @@ -225,7 +225,7 @@ static int mad_cmd_write(const char *Cmd, const char *cmd_name, bool force_class arg_str1(NULL, "aid", "", "application ID (2 hex bytes)"), arg_str0("k", "key", "", "key for data sectors"), arg_lit0("b", "keyb", "use key B (def: key A)"), - arg_str0(NULL, "mad-key", "", "key for MAD sectors"), + arg_str0(NULL, "madkey", "", "key for MAD sectors"), arg_lit0(NULL, "be", "big-endian AID byte swap"), arg_lit0(NULL, "override", "override failed CRC check"), arg_str0("d", "data", "", "data to write"), @@ -321,7 +321,7 @@ static int mad_cmd_verify(const char *Cmd, const char *cmd_name, bool force_clas arg_str1(NULL, "aid", "", "application ID (2 hex bytes)"), arg_str0("k", "key", "", "key for data sectors"), arg_lit0("b", "keyb", "use key B (def: key A)"), - arg_str0(NULL, "mad-key", "", "key for MAD sectors"), + arg_str0(NULL, "madkey", "", "key for MAD sectors"), arg_lit0(NULL, "be", "big-endian AID byte swap"), arg_lit0(NULL, "override", "override failed CRC check"), arg_str0("d", "data", "", "expected data"), @@ -616,8 +616,12 @@ static int CmdMADEncode(const char *Cmd) { CLIParserFree(ctx); return PM3_EINVARG; } + sector_aids[sno] = aid_val; - if (sno > 15) have_mad2 = true; + + if (sno > 15) { + have_mad2 = true; + } } }