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