From 159b90c00265f654a3af905b5044b5a86401b190 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Thu, 3 Oct 2019 21:56:42 +0200 Subject: [PATCH] no fct call in macro, thanks @iceman1001 --- client/cmdlf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/cmdlf.c b/client/cmdlf.c index d35956e2b..826391752 100644 --- a/client/cmdlf.c +++ b/client/cmdlf.c @@ -482,7 +482,8 @@ int CmdLFSetConfig(const char *Cmd) { cmdp += 2; break; case 'f': { - divisor = LF_DIVISOR(param_get32ex(Cmd, cmdp + 1, 125, 10)); + int freq = param_get32ex(Cmd, cmdp + 1, 125, 10); + divisor = LF_DIVISOR(freq); if (divisor < 19) { PrintAndLogEx(ERR, "freq must be between 47 and 600"); return PM3_EINVARG;