]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
Merge pull request #86 from egon2/fix-85
authorIceman <iceman@iuse.se>
Sun, 5 Mar 2017 17:22:17 +0000 (18:22 +0100)
committerGitHub <noreply@github.com>
Sun, 5 Mar 2017 17:22:17 +0000 (18:22 +0100)
fixes #85  compiler warning and programflow bug.

common/lfdemod.c

index cdbe2c6ff36e299e98de8f473d5efc253244a90f..797bce40638e805cbffd55ec43a7da312b52b187 100644 (file)
@@ -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;
 }
Impressum, Datenschutz