From: egon2 Date: Sun, 5 Mar 2017 16:19:26 +0000 (+0000) Subject: fixes #85 X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/37a71c7a96bdcb787aa7c04871f42ef75e1ab164 fixes #85 --- diff --git a/common/lfdemod.c b/common/lfdemod.c index cdbe2c6f..797bce40 100644 --- a/common/lfdemod.c +++ b/common/lfdemod.c @@ -945,9 +945,10 @@ int DetectStrongAskClock(uint8_t dest[], size_t size, uint8_t high, uint8_t low, // set clock if (g_debugMode==2) prnt("DEBUG ASK: detectstrongASKclk smallest wave: %d",minClk); for (uint8_t clkCnt = 0; clkCnt<7; clkCnt++) { - if (minClk >= clocks[clkCnt]-(clocks[clkCnt]/8) && minClk <= clocks[clkCnt]+1) + if (minClk >= clocks[clkCnt]-(clocks[clkCnt]/8) && minClk <= clocks[clkCnt]+1) { *clock = clocks[clkCnt]; return shortestWaveIdx; + } } return 0; }