Fix LUA=N compilation failure

This commit is contained in:
Peter Feerick
2021-12-24 13:18:08 +10:00
parent b6ad6fbc50
commit 0814cbca88
2 changed files with 5 additions and 2 deletions
+3 -2
View File
@@ -119,6 +119,7 @@ class FormGridLayoutEx : public FormGridLayout
uint8_t _lineHeight = PAGE_LINE_HEIGHT;
};
#if defined(LUA)
void buildLuaUi(std::vector<LuaScript> luaScripts, FormWindow *window, FormGridLayoutEx &grid)
{
for (auto luaScript : luaScripts) {
@@ -136,7 +137,7 @@ void buildLuaUi(std::vector<LuaScript> luaScripts, FormWindow *window, FormGridL
luaExec(luaScript.path.c_str());
StandaloneLuaWindow::instance()->attach(window);
return 0;
},
OPAQUE);
@@ -156,7 +157,7 @@ void buildLuaUi(std::vector<LuaScript> luaScripts, FormWindow *window, FormGridL
grid.nextLine();
}
}
#endif
void RadioToolsPage::rebuild(FormWindow * window)
{
+2
View File
@@ -21,6 +21,7 @@
#pragma once
#if defined(LUA)
#include "libopenui.h"
#include "lua/lua_api.h"
@@ -77,3 +78,4 @@ protected:
LuaTouchData touch;
#endif
};
#endif