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 -2
View File
@@ -1636,10 +1636,12 @@ void menuCommonCalib(uint8_t event)
void menuGeneralCalib(uint8_t event)
{
if (!check_simple(event, e_Calib, menuTabDiag, DIM(menuTabDiag), 0)) {
check_simple(event, e_Calib, menuTabDiag, DIM(menuTabDiag), 0);
if (menuEvent) {
calibrationState = 0;
return;
}
TITLE(STR_MENUCALIBRATION);
menuCommonCalib(READ_ONLY() ? 0 : event);
}