application: remove unused button handling

This commit is contained in:
King Kévin 2018-02-23 16:00:04 +01:00
parent b3bfcf9e77
commit 12182e3667
1 changed files with 0 additions and 9 deletions

View File

@ -328,15 +328,6 @@ void main(void)
terminal_send(c); // send received character to terminal
}
}
while (button_flag) { // user pressed button
action = true; // action has been performed
printf("button pressed\n");
led_toggle(); // toggle LED
for (uint32_t i=0; i<1000000; i++) { // wait a bit to remove noise and double trigger
__asm__("nop");
}
button_flag = false; // reset flag
}
if (action) { // go to sleep if nothing had to be done, else recheck for activity
action = false;
} else {