modified weigand formats to include number of bits

This commit is contained in:
iceman1001 committed 2025-02-22 18:28:38 +01:00
1 parent a7643eef7c
commit 323a4284ff
8 files changed
+64 -59

No files matched your search

+3 -1
View File
@@ -1067,8 +1067,10 @@ static int CmdSmartBruteforceSFI(const char *Cmd) {
smart_loadjson("aidlist", &root);
uint8_t *buf = calloc(PM3_CMD_DATA_SIZE, sizeof(uint8_t));
if (!buf)
if (buf == NULL) {
PrintAndLogEx(WARNING, "failed to allocate memory");
return PM3_EMALLOC;
}
PrintAndLogEx(INFO, "Selecting card");
if (!smart_select(false, NULL)) {