mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -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:
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue