fix "lf hitag reader --23" - now allows 6bytes

This commit is contained in:
iceman1001 2021-06-24 21:31:43 +02:00
parent cfd13e16e9
commit 3d663be25a

View file

@ -570,8 +570,8 @@ static int CmdLFHitagReader(const char *Cmd) {
}
// sanity checks
if (keylen != 0 && keylen != 4) {
PrintAndLogEx(WARNING, "Wrong KEY len expected 0 or 4, got %d", keylen);
if (keylen != 0 && keylen != 4 && keylen != 6) {
PrintAndLogEx(WARNING, "Wrong KEY len expected 0,4 or 6, got %d", keylen);
return PM3_EINVARG;
}