int CmdHIDClone(const char *Cmd) {
- unsigned int hi2 = 0, hi = 0, lo = 0;
+ uint32_t hi2 = 0, hi = 0, lo = 0;
int n = 0, i = 0;
UsbCommand c;
case 'A':
fmtlen = param_get8(Cmd, cmdp+1);
cmdp += 2;
+ bool is_ftm_ok = FALSE;
uint8_t ftms[] = {26,33,34,35,37};
for ( uint8_t i = 0; i < sizeof(ftms); i++){
if ( ftms[i] == fmtlen ) {
- errors = FALSE;
+ is_ftm_ok = TRUE;
}
}
+ // negated
+ errors = !is_ftm_ok;
break;
default:
PrintAndLog("Unknown parameter '%c'", param_getchar(Cmd, cmdp));
{"fskdemod",CmdHIDDemodFSK, 0, "Realtime HID FSK demodulator"},
{"sim", CmdHIDSim, 0, "HID tag simulator"},
{"clone", CmdHIDClone, 0, "Clone HID to T55x7"},
- {"wiegand", CmdHIDWiegand, 0, "Convert facility code/card number to Wiegand code"},
+ {"wiegand", CmdHIDWiegand, 1, "Convert facility code/card number to Wiegand code"},
{"brute", CmdHIDBrute, 0, "Bruteforce card number against reader"},
{NULL, NULL, 0, NULL}
};