From 00cff49f9d985cfe1fa8691ff5ddf10c8c19bdce Mon Sep 17 00:00:00 2001 From: cyberpunk-re Date: Mon, 7 Dec 2020 23:33:58 +0000 Subject: [PATCH] fixed incorrect bitmask on modulation --- client/src/cmdlft55xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/cmdlft55xx.c b/client/src/cmdlft55xx.c index df00da6b1..9eed344d7 100644 --- a/client/src/cmdlft55xx.c +++ b/client/src/cmdlft55xx.c @@ -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')) {