Merge pull request #77 from Proxmark/usb_check

Implemented usb_poll() within LF sim.
This commit is contained in:
Martin Holst Swende 2015-03-12 18:15:08 +01:00
commit aaa9f05e31

View 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;
}