mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-13 10:43:01 +08:00
confirm function has exited on button press
This commit is contained in:
parent
67b9b62a7e
commit
6bd86cb24a
1 changed files with 4 additions and 0 deletions
|
@ -339,6 +339,7 @@ void SimulateTagLowFrequency(int period)
|
||||||
for(;;) {
|
for(;;) {
|
||||||
while(!(PIO_PIN_DATA_STATUS & (1<<GPIO_SSC_CLK))) {
|
while(!(PIO_PIN_DATA_STATUS & (1<<GPIO_SSC_CLK))) {
|
||||||
if(BUTTON_PRESS()) {
|
if(BUTTON_PRESS()) {
|
||||||
|
DbpString("Stopped");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
WDT_HIT();
|
WDT_HIT();
|
||||||
|
@ -354,6 +355,7 @@ void SimulateTagLowFrequency(int period)
|
||||||
|
|
||||||
while(PIO_PIN_DATA_STATUS & (1<<GPIO_SSC_CLK)) {
|
while(PIO_PIN_DATA_STATUS & (1<<GPIO_SSC_CLK)) {
|
||||||
if(BUTTON_PRESS()) {
|
if(BUTTON_PRESS()) {
|
||||||
|
DbpString("Stopped");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
WDT_HIT();
|
WDT_HIT();
|
||||||
|
@ -487,6 +489,7 @@ static void CmdHIDdemodFSK(void)
|
||||||
WDT_HIT();
|
WDT_HIT();
|
||||||
LED_A_ON();
|
LED_A_ON();
|
||||||
if(BUTTON_PRESS()) {
|
if(BUTTON_PRESS()) {
|
||||||
|
DbpString("Stopped");
|
||||||
LED_A_OFF();
|
LED_A_OFF();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -970,6 +973,7 @@ void ListenReaderField(int limit)
|
||||||
{
|
{
|
||||||
if(BUTTON_PRESS())
|
if(BUTTON_PRESS())
|
||||||
{
|
{
|
||||||
|
DbpString("Stopped");
|
||||||
LED_B_OFF();
|
LED_B_OFF();
|
||||||
LED_D_OFF();
|
LED_D_OFF();
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue