mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
minor adjustments. return instead of goto
This commit is contained in:
parent
2d283c42a6
commit
1285f5a32c
4 changed files with 8 additions and 8 deletions
|
@ -34,7 +34,7 @@ void RunMod() {
|
|||
for (;;) {
|
||||
WDT_HIT();
|
||||
// exit from Standalone Mode, send a usbcommand.
|
||||
if (usb_poll_validate_length()) goto out;
|
||||
if (usb_poll_validate_length()) return;
|
||||
|
||||
SpinDelay(300);
|
||||
|
||||
|
@ -52,7 +52,7 @@ void RunMod() {
|
|||
|
||||
for (;;) {
|
||||
// exit from Standalone Mode, send a usbcommand.
|
||||
if (usb_poll_validate_length()) goto out;
|
||||
if (usb_poll_validate_length()) return;
|
||||
|
||||
if (BUTTON_PRESS()) {
|
||||
if (cardRead[selected]) {
|
||||
|
@ -201,7 +201,7 @@ void RunMod() {
|
|||
DbpString("Playing");
|
||||
for ( ; ; ) {
|
||||
// exit from Standalone Mode, send a usbcommand.
|
||||
if (usb_poll_validate_length()) goto out;
|
||||
if (usb_poll_validate_length()) return;
|
||||
|
||||
int button_action = BUTTON_HELD(1000);
|
||||
if ( button_action == 0) { // No button action, proceed with sim
|
||||
|
@ -258,6 +258,4 @@ void RunMod() {
|
|||
LED(selected + 1, 0);
|
||||
}
|
||||
}
|
||||
// time to exit standalone mode
|
||||
out:
|
||||
}
|
|
@ -31,7 +31,7 @@ void RunMod() {
|
|||
|
||||
// Was our button held down or pressed?
|
||||
int button_pressed = BUTTON_HELD(1000);
|
||||
SpinDelay(300);
|
||||
//SpinDelay(300);
|
||||
|
||||
// Button was held for a second, begin recording
|
||||
if (button_pressed > 0 && cardRead == 0) {
|
||||
|
@ -131,4 +131,4 @@ void RunMod() {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -12,10 +12,11 @@
|
|||
#ifndef __LF_SAMYRUN_H
|
||||
#define __LF_SAMYRUN_H
|
||||
|
||||
#include <stdbool.h> // for bool
|
||||
//#include <stdbool.h> // for bool
|
||||
#include "standalone.h" // standalone definitions
|
||||
#include "apps.h" // debugstatements, lfops?
|
||||
|
||||
|
||||
#define OPTS 2
|
||||
|
||||
#endif /* __LF_SAMYRUN_H */
|
|
@ -12,6 +12,7 @@
|
|||
#define __STANDALONE_H
|
||||
|
||||
#include <stdbool.h> // for bool
|
||||
#include <inttypes.h> // PRIu64
|
||||
|
||||
extern void RunMod();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue