mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-10 02:04:39 +08:00
Merge pull request #77 from Proxmark/usb_check
Implemented usb_poll() within LF sim.
This commit is contained in:
commit
aaa9f05e31
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue