fix the too long filename bug when using a smaller width param. also added some extra text for output length of binary strings in decode. One tend to not see if its 25 or 26 bits sometimes :)
This commit is contained in:
1 parent
00dfd6e5f1
commit
a79b2bb725
4 files changed
+50
-11
No files matched your search
@@ -145,7 +145,7 @@ int CmdWiegandDecode(const char *Cmd) {
|
||||
if (hlen) {
|
||||
res = hexstring_to_u96(&top, &mid, &bot, hex);
|
||||
if (res != hlen) {
|
||||
PrintAndLogEx(ERR, "hex string contains none hex chars");
|
||||
PrintAndLogEx(ERR, "Hex string contains none hex chars");
|
||||
return PM3_EINVARG;
|
||||
}
|
||||
} else if (blen) {
|
||||
@@ -154,8 +154,9 @@ int CmdWiegandDecode(const char *Cmd) {
|
||||
PrintAndLogEx(ERR, "Binary string contains none <0|1> chars");
|
||||
return PM3_EINVARG;
|
||||
}
|
||||
PrintAndLogEx(INFO, "Input bin len... %d", blen);
|
||||
} else {
|
||||
PrintAndLogEx(ERR, "empty input");
|
||||
PrintAndLogEx(ERR, "Empty input");
|
||||
return PM3_EINVARG;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user