Hack: ignore BTN_0 if not configured correctly. (USB:MSC stuff)
This commit is contained in:
parent
807ef50254
commit
878092c569
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue