fixed incorrect bitmask on modulation

This commit is contained in:
cyberpunk-re 2020-12-07 23:33:58 +00:00
commit 00cff49f9d

View file

@ -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')) {