chg: minor syntax

This commit is contained in:
iceman1001 2018-02-22 15:04:49 +01:00
parent 1c37981430
commit 87b3df94c1

View file

@ -69,7 +69,7 @@ void RunMod() {
Dbprintf("[+] cloning %x %x %08x", selected, high[selected], low[selected]); Dbprintf("[+] cloning %x %x %08x", selected, high[selected], low[selected]);
// wait for button to be released // wait for button to be released
while(BUTTON_PRESS()) while (BUTTON_PRESS())
WDT_HIT(); WDT_HIT();
/* need this delay to prevent catching some weird data */ /* need this delay to prevent catching some weird data */
@ -101,17 +101,17 @@ void RunMod() {
// Begin transmitting // Begin transmitting
if (playing) { if (playing) {
LED(LED_GREEN, 0); LED(LED_GREEN, 0);
DbpString("[+] Playing"); DbpString("[+] playing");
// wait for button to be released // wait for button to be released
while (BUTTON_PRESS()) while (BUTTON_PRESS())
WDT_HIT(); WDT_HIT();
Dbprintf("[+] %x %x %08x", selected, high[selected], low[selected]); Dbprintf("[+] %x %x %08x", selected, high[selected], low[selected]);
CmdHIDsimTAG(high[selected], low[selected], 0); CmdHIDsimTAG(high[selected], low[selected], 0);
DbpString("[+] Done playing"); DbpString("[+] done playing");
if (BUTTON_HELD(1000) > 0) { if (BUTTON_HELD(1000) > 0) {
DbpString("[+] Exiting"); DbpString("[+] exiting");
LEDsoff(); LEDsoff();
return; return;
} }
@ -126,7 +126,7 @@ void RunMod() {
LED(selected + 1, 0); LED(selected + 1, 0);
} }
else { else {
while(BUTTON_PRESS()) while (BUTTON_PRESS())
WDT_HIT(); WDT_HIT();
} }
} }