Warnings removed

This commit is contained in:
Bertrand Songis
2016-12-19 23:20:11 +01:00
parent 7da9aa811a
commit 7343ad0de5
3 changed files with 17 additions and 1 deletions
+11
View File
@@ -612,3 +612,14 @@ void menuMainView(event_t event)
}
#endif
}
#undef EVT_KEY_CONTEXT_MENU
#undef EVT_KEY_PREVIOUS_VIEW
#undef EVT_KEY_NEXT_VIEW
#undef EVT_KEY_NEXT_PAGE
#undef EVT_KEY_PREVIOUS_PAGE
#undef EVT_KEY_MODEL_MENU
#undef EVT_KEY_GENERAL_MENU
#undef EVT_KEY_LAST_MENU
#undef EVT_KEY_TELEMETRY
#undef EVT_KEY_STATISTICS
+2
View File
@@ -573,3 +573,5 @@ void menuViewTelemetryFrsky(event_t event)
#endif
}
#undef EVT_KEY_PREVIOUS_VIEW
#undef EVT_KEY_NEXT_VIEW
+4 -1
View File
@@ -101,7 +101,7 @@ void readTextFile(int & lines_count)
#define EVT_KEY_NEXT_LINE EVT_KEY_FIRST(KEY_DOWN)
#define EVT_KEY_PREVIOUS_LINE EVT_KEY_FIRST(KEY_UP)
#endif
void menuTextView(event_t event)
{
static int lines_count;
@@ -159,3 +159,6 @@ void pushMenuTextView(const char *filename)
pushMenu(menuTextView);
}
}
#undef EVT_KEY_NEXT_LINE
#undef EVT_KEY_PREVIOUS_LINE