fixed incorrect bitmask on modulation

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

View file

@ -790,7 +790,7 @@ static int CmdT55xxSetConfig(const char *Cmd) {
PrintAndLogEx(WARNING, "Unknown modulation '%s'", modulation);
errors = true;
}
config.block0 = ((config.block0 & ~(0x1f0000)) | (config.modulation << 12));
config.block0 = ((config.block0 & ~(0x1f000)) | (config.modulation << 12));
break;
case 'i':
if ((param_getchar(Cmd, cmdp + 1) == '0') || (param_getchar(Cmd, cmdp + 1) == '1')) {