chg 'lf cmdread' - clientside checks, less wait times on device

This commit is contained in:
iceman1001
2019-09-30 23:18:48 +02:00
parent d40341d962
commit f142ad139b
2 changed files with 17 additions and 5 deletions

View File

@@ -289,6 +289,14 @@ int CmdLFCommandRead(const char *Cmd) {
}
}
// bitbang mode
if (payload.delay == 0){
if (payload.zeros < 7 || payload.ones < 7) {
PrintAndLogEx(WARNING, "Warning periods cannot be less than 7us in bit bang mode");
return PM3_EINVARG;
}
}
//Validations
if (errors || cmdp == 0) return usage_lf_cmdread();