lf t55xx wipe - better handling of wrong length pwd

This commit is contained in:
iceman1001 2021-02-03 00:15:19 +01:00
commit ff98bb047d

View file

@ -2895,8 +2895,9 @@ static int CmdT55xxWipe(const char *Cmd) {
res = arg_get_u32_hexstr_def(ctx, 2, 0x51243648, &password);
if (res) {
usepwd = true;
}
if (usepwd && res == 2)
if (res == 2) {
PrintAndLogEx(WARNING, "Password should be 4 bytes, using default pwd");
}