fixed incorrect bitmask on modulation
This commit is contained in:
@@ -790,7 +790,7 @@ static int CmdT55xxSetConfig(const char *Cmd) {
|
|||||||
PrintAndLogEx(WARNING, "Unknown modulation '%s'", modulation);
|
PrintAndLogEx(WARNING, "Unknown modulation '%s'", modulation);
|
||||||
errors = true;
|
errors = true;
|
||||||
}
|
}
|
||||||
config.block0 = ((config.block0 & ~(0x1f0000)) | (config.modulation << 12));
|
config.block0 = ((config.block0 & ~(0x1f000)) | (config.modulation << 12));
|
||||||
break;
|
break;
|
||||||
case 'i':
|
case 'i':
|
||||||
if ((param_getchar(Cmd, cmdp + 1) == '0') || (param_getchar(Cmd, cmdp + 1) == '1')) {
|
if ((param_getchar(Cmd, cmdp + 1) == '0') || (param_getchar(Cmd, cmdp + 1) == '1')) {
|
||||||
|
|||||||
Reference in New Issue
Block a user