Events are transmitted to the Lua telemetry screens. Menus are displayed

over those screens (needed at least for Reset Telemetry/Flight)
This commit is contained in:
bsongis
2014-06-18 22:42:04 +02:00
parent b77d470684
commit b83f95ed1a
2 changed files with 12 additions and 8 deletions
+7 -7
View File
@@ -2760,6 +2760,13 @@ void perMain()
if (!LCD_LOCKED()) {
lcd_clear();
g_menuStack[g_menuStackPtr]((warn || menu) ? 0 : evt);
}
#if defined(LUA)
luaTask(evt);
#endif
if (!LCD_LOCKED()) {
if (warn) DISPLAY_WARNING(evt);
#if defined(NAVIGATION_MENUS)
if (menu) {
@@ -2769,16 +2776,9 @@ void perMain()
putEvent(EVT_MENU_UP);
}
}
#endif
#if defined(LUA)
evt = 0;
#endif
}
#if defined(LUA)
luaTask(evt);
#endif
drawStatusLine();
lcdRefresh();