]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - armsrc/lfops.c
fix gui (plot) bugs (#604)
[proxmark3-svn] / armsrc / lfops.c
index c7a7a59dd9469721ce2845eb150431ae8739bb47..f3bbbf84e19f6f2527ba787a497e70437fda213e 100644 (file)
@@ -33,14 +33,15 @@ void ModThenAcquireRawAdcSamples125k(uint32_t delay_off, uint32_t period_0, uint
 
        // use lf config settings
        sample_config *sc = getSamplingConfig();
-       // clear read buffer
-       BigBuf_Clear_keep_EM();
 
-       /* Make sure the tag is reset */
+       // Make sure the tag is reset
        FpgaDownloadAndGo(FPGA_BITSTREAM_LF);
        FpgaWriteConfWord(FPGA_MAJOR_MODE_OFF);
        WaitMS(2500);
 
+       // clear read buffer (after fpga bitstream loaded...)
+       BigBuf_Clear_keep_EM();
+
        // power on
        LFSetupFPGAForADC(sc->divisor, 1);
 
Impressum, Datenschutz