From 433f84ca0d11ecebbee4eeb83855c2d27cce7eb8 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Mon, 18 Mar 2019 22:25:21 +0100 Subject: [PATCH] style --- armsrc/pcf7931.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/armsrc/pcf7931.c b/armsrc/pcf7931.c index 0d4c41048..d0edc2698 100644 --- a/armsrc/pcf7931.c +++ b/armsrc/pcf7931.c @@ -12,25 +12,19 @@ size_t DemodPCF7931(uint8_t **outBlocks) { if (GraphTraceLen > 18000) GraphTraceLen = 18000; - int i, j, lastval, bitidx, half_switch; + int i = 2, j, lastval, bitidx, half_switch; int clock = 64; int tolerance = clock / 8; int pmc, block_done; int lc, warnings = 0; size_t num_blocks = 0; - int lmin = 128, lmax = 128; + int lmin = 64, lmax = 192; uint8_t dir; - //clear read buffer - BigBuf_Clear_keep_EM(); + BigBuf_Clear_keep_EM(); LFSetupFPGAForADC(95, true); DoAcquisition_default(0, true); - lmin = 64; - lmax = 192; - - i = 2; - /* Find first local max/min */ if (dest[1] > dest[0]) { while (i < GraphTraceLen) {