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,10 +19,13 @@ uint8_t getInput(void) {
result += BTN_ENTER;
}
if (gpioGetValue(RB_BTN0)==0) {
while(gpioGetValue(RB_BTN0)==0);
result += BTN_LEFT;
}
if(IOCON_PIO0_1 & 1 == 1){
; // disable left
}else
if (gpioGetValue(RB_BTN0)==0) {
while(gpioGetValue(RB_BTN0)==0);
result += BTN_LEFT;
}
if (gpioGetValue(RB_BTN1)==0) {
while(gpioGetValue(RB_BTN1)==0);