]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - armsrc/lfops.c
Implemented usb_poll() within LF sim. This means the LF sim will be aborted whenever...
[proxmark3-svn] / armsrc / lfops.c
index 468f58302862c1cdf6d9559f988d3176ed41ac47..16c428554a348be12ee5f648afae634243d74144 100644 (file)
@@ -16,6 +16,7 @@
 #include "string.h"
 #include "lfdemod.h"
 #include "lfsampling.h"
+#include "usb_cdc.h"
 
 
 /**
@@ -401,7 +402,7 @@ void SimulateTagLowFrequency(int period, int gap, int ledcontrol)
     for(;;) {
         //wait until SSC_CLK goes HIGH
         while(!(AT91C_BASE_PIOA->PIO_PDSR & GPIO_SSC_CLK)) {
-            if(BUTTON_PRESS()) {
+                       if(BUTTON_PRESS() || usb_poll()) {
                 DbpString("Stopped");
                 return;
             }
Impressum, Datenschutz