From 6d4c09066d6a2580756b2b58d7905867f4fafd3b Mon Sep 17 00:00:00 2001 From: Stefan `Sec` Zehl Date: Fri, 17 Jun 2011 16:19:33 +0200 Subject: [PATCH] Just fix some compile errors --- modules/menutest.c | 37 ------------------------------------- 1 file changed, 37 deletions(-) diff --git a/modules/menutest.c b/modules/menutest.c index d4545f9..3bbe242 100644 --- a/modules/menutest.c +++ b/modules/menutest.c @@ -64,43 +64,6 @@ static menuentry menu[] = { static const struct MENU mainmenu = {"Mainmenu", menu}; void handleMenu(const struct MENU *the_menu) ; -void delayms(int); - -uint8_t getInput(void) { - uint8_t result = BTN_NONE; - - if (gpioGetValue(RB_BTN3)==0) { - while(gpioGetValue(RB_BTN3)==0); - result += BTN_UP; - } - - if (gpioGetValue(RB_BTN2)==0) { - while(gpioGetValue(RB_BTN2)==0); - result += BTN_DOWN; - } - - if (gpioGetValue(RB_BTN4)==0) { - while(gpioGetValue(RB_BTN4)==0); - result += BTN_ENTER; - } - - if (gpioGetValue(RB_BTN0)==0) { - while(gpioGetValue(RB_BTN0)==0); - result += BTN_LEFT; - } - - if (gpioGetValue(RB_BTN1)==0) { - while(gpioGetValue(RB_BTN1)==0); - result += BTN_RIGHT; - } - - if (result == (BTN_LEFT+BTN_TOP+BTN_ENTER)){ /* Development hack */ - gotoISP(); - } - - return result; -} - void module_menutest(void) {