mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-13 18:57:12 +08:00
Implemented usb_poll() within LF sim. This means the LF sim will be aborted whenever something comes over the USB
This commit is contained in:
parent
04bc1c660b
commit
f7048dc8a9
1 changed files with 2 additions and 1 deletions
|
@ -16,6 +16,7 @@
|
||||||
#include "string.h"
|
#include "string.h"
|
||||||
#include "lfdemod.h"
|
#include "lfdemod.h"
|
||||||
#include "lfsampling.h"
|
#include "lfsampling.h"
|
||||||
|
#include "usb_cdc.h"
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -401,7 +402,7 @@ void SimulateTagLowFrequency(int period, int gap, int ledcontrol)
|
||||||
for(;;) {
|
for(;;) {
|
||||||
//wait until SSC_CLK goes HIGH
|
//wait until SSC_CLK goes HIGH
|
||||||
while(!(AT91C_BASE_PIOA->PIO_PDSR & GPIO_SSC_CLK)) {
|
while(!(AT91C_BASE_PIOA->PIO_PDSR & GPIO_SSC_CLK)) {
|
||||||
if(BUTTON_PRESS()) {
|
if(BUTTON_PRESS() || usb_poll()) {
|
||||||
DbpString("Stopped");
|
DbpString("Stopped");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue