]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - armsrc/lfsampling.c
Add flasher from SVN r623 for HID bootprom and current Mac OS X kext
[proxmark3-svn] / armsrc / lfsampling.c
index 6314ac7461218e82e74fcf26b54a0c4b1cd7b987..348549ef5e08df2981ff0b2cec2255523e03bbc8 100644 (file)
@@ -124,8 +124,9 @@ void LFSetupFPGAForADC(int divisor, bool lf_field)
 uint32_t DoAcquisition(uint8_t decimation, uint32_t bits_per_sample, bool averaging, int trigger_threshold,bool silent)
 {
        //.
 uint32_t DoAcquisition(uint8_t decimation, uint32_t bits_per_sample, bool averaging, int trigger_threshold,bool silent)
 {
        //.
-       uint8_t *dest = (uint8_t *)BigBuf;
-       int bufsize = BIGBUF_SIZE;
+       uint8_t *dest = BigBuf_get_addr();
+    int bufsize = BigBuf_max_traceLen();
+
        memset(dest, 0, bufsize);
 
        if(bits_per_sample < 1) bits_per_sample = 1;
        memset(dest, 0, bufsize);
 
        if(bits_per_sample < 1) bits_per_sample = 1;
Impressum, Datenschutz