Hack: ignore BTN_0 if not configured correctly. (USB:MSC stuff)

This commit is contained in:
Stefan `Sec` Zehl 2011-06-26 02:57:08 +02:00
parent 807ef50254
commit 878092c569
1 changed files with 7 additions and 4 deletions

View File

@ -19,6 +19,9 @@ uint8_t getInput(void) {
result += BTN_ENTER; result += BTN_ENTER;
} }
if(IOCON_PIO0_1 & 1 == 1){
; // disable left
}else
if (gpioGetValue(RB_BTN0)==0) { if (gpioGetValue(RB_BTN0)==0) {
while(gpioGetValue(RB_BTN0)==0); while(gpioGetValue(RB_BTN0)==0);
result += BTN_LEFT; result += BTN_LEFT;