Cosmetics

This commit is contained in:
Bertrand Songis
2016-08-23 20:07:39 +02:00
parent f34de72e25
commit 643a731979
21 changed files with 77 additions and 85 deletions
+3 -4
View File
@@ -43,17 +43,16 @@ bool menuAboutView(event_t event)
static uint8_t screenIndex = 0;
static uint8_t greyIndex = 0;
switch(event)
{
switch (event) {
case EVT_ENTRY:
screenIndex = 0;
greyIndex = 0;
break;
case EVT_KEY_FIRST(KEY_RIGHT):
case EVT_KEY_FIRST(KEY_PGDN):
screenIndex < ABOUT_PARENTS ? screenIndex++ : screenIndex = ABOUT_OPENTX;
greyIndex = 0;
break;
case EVT_KEY_FIRST(KEY_LEFT):
case EVT_KEY_FIRST(KEY_PGUP):
screenIndex > ABOUT_OPENTX ? screenIndex-- : screenIndex = ABOUT_PARENTS;
greyIndex = 0;
break;