Menus refactoring (idea taken from er9x). Saves around 200bytes flash on

9X stock
This commit is contained in:
bsongis
2014-09-03 19:07:12 +02:00
parent f865af2cbe
commit 78f8b60f85
13 changed files with 77 additions and 92 deletions
+4 -4
View File
@@ -44,7 +44,7 @@ void menuStatisticsView(uint8_t event)
{
case EVT_KEY_FIRST(KEY_UP):
chainMenu(menuStatisticsDebug);
return;
break;
#if defined(CPUARM)
case EVT_KEY_LONG(KEY_MENU):
@@ -55,7 +55,7 @@ void menuStatisticsView(uint8_t event)
#endif
case EVT_KEY_FIRST(KEY_EXIT):
chainMenu(menuMainView);
return;
break;
}
lcd_puts( 1*FW, FH*0, STR_TOTTM1TM2THRTHP);
@@ -132,10 +132,10 @@ void menuStatisticsDebug(uint8_t event)
break;
case EVT_KEY_FIRST(KEY_DOWN):
chainMenu(menuStatisticsView);
return;
break;
case EVT_KEY_FIRST(KEY_EXIT):
chainMenu(menuMainView);
return;
break;
}
#if defined(PCBSKY9X)